in C!!
12.12 LAB: Swapping variables
Write a program whose input is two integers and whose output is the two integers swapped.

Ex: If the input is:

3 8
then the output is:

8 3
Your program must define and call a function. SwapValues returns the two values in swapped order.
void SwapValues(int* userVal1, int* userVal2)

In C!!12.12 LAB: Swapping VariablesWrite A Program Whose Input Is Two Integers And Whose Output Is The

Answers

Answer 1

Answer:

#include <stdio.h>

void SwapValues(int* userVal1, int* userVal2)

{

int temp = *userVal1;

*userVal1 = *userVal2;

*userVal2 = temp;

}

int main(void)

{

int a = 3;

int b = 8;

printf("Before swap: a=%d, b=%d\n", a, b);

SwapValues(&a, &b);

printf("After swap:  a=%d, b=%d\n", a, b);

return 0;

}

Explanation:

For swapping variables efficiently, you need a helper variable in C or C++.

In C!!12.12 LAB: Swapping VariablesWrite A Program Whose Input Is Two Integers And Whose Output Is The

Related Questions

In the Solmaris Condominium Group database, the number of the condo unit needing service with service_id 6 is _____.

Answers

Answer:

C06

Explanation:

From the attached table or images of Solmaris Condominium Group database we can see that the "ServiceRequest" table has 'ServiceID 6' attached to 'CondoID 14'.

However, in the "CondoUnit" table, we have the 'CondoID 14' attached to 'UnitNum C06.'

Hence, In the Solmaris Condominium Group database, the number of the condo unit needing service with service_id 6 is "C06"

Write code that generates a random odd integer (not divisible by 2) between 50 and 99 inclusive.

Answers

import random

nums = [x for x in range(50,100) if x%2!=0]

print(random.choice(nums))

We use a list comprehension to create a list of the odd numbers between 50 and 99. Then we randomly choose one of those numbers using the random module.

How do people make video games

Answers

Answer:

requieres a lot of hardcore coding

Explanation:

Write the function powersOf3ToN(n) that takes a possibly-negative float or int n, and returns a list of the positive powers of 3 up to and including n. As an example, powersOf3ToN(10.5) returns [1, 3, 9]. If no such powers of 3 exist, you should return the empty list. You may not use loops/iteration in this problem.

Answers

Answer:

def powersOf3ToN(n):

   try:

       num = int(round(n))

   except (ValueError, NameError, TypeError):

       print("Parameter of the function must be integer or float")

       quit()

   num_list = range(num)

   val_list = [pow(3,x) for x in num_list if pow(3,x) in num_list]

   print(val_list)

powersOf3ToN(30)

Explanation:

The python code prints out a list of integer numbers that are equivalent to the power of three. The function accepts integer and floating numbers but not strings or it prints an error message and quits the program.

What is the difference between a master device in a Bluetooth network and a base station in an 802.11 network?

Answers

Answer:

In an 802.11, a master device in a bluetooth network organize themselves into a "Piconet" of up to 8 slave devices. In an 802.11, a base station is a receiver and transmitter that plays a role of the WIFI network.

Explanation:

802.11 is the original wireless specification and it was developed by IEEE. IEEE stands for Institute of Electrical and Electronic Engineers (IEEE).

In an 802.11, a master device in a bluetooth network organize themselves into a "Piconet" of up to 8 slave devices. In an 802.11, a base station is a receiver and transmitter that plays a role of the WIFI network.

Why do Selection Sort and Insertion Sort’s outer loops run 11 iterations if there are 12 elements in the array?

Answers

Answer:

The final case in selection sort is trivially sorted.

The final iteration in insertion sort is not needed.

Explanation:

For selection sort, you make sub arrays and find the smallest element placing it in the front and repeat until sorted.  This guarantees the final element will already be the greatest element, thus it is trivially sorted.

For Insertion sort, you use the initial element and compare it to the previous element and swap if the current is larger than the previous.  Using this sort, you will always perform n-1 comparisons where n is the total amount of elements in the array.  Thus, there are only 11 iterations for a 12 element array.

Cheers.

can a 3048 hp motherboard support a i7 10700k cpu?

Answers

Answer:

Yes

Explanation:

Answer:

yes it can

Explanation:

no need to explain

1. Assume that in an implementation of the RSA cryptosystem one modular squar- ing takes 75% of the time of a modular multiplication. How much quicker is one encryption on average if instead of a 2048-bit public key the short exponent e

Answers

Answer:

3 times faster

Explanation:

The full form of RMS is Rivest–Shamir–Adleman. It refers to the public key crypto-system which is mainly used for securing the data transmission. It is one of the oldest algorithm.

The time taken bu modular squaring is 75 percent of the time required by the modular multiplication. Therefore, one encryption works three times quicker on an average if the short exponent of [tex]$e=2^{16}+1$[/tex] is used instead of the 2048 bit public key.

Write a program whose inputs are three integers, and whose output is the smallest of the three values.Ex: If the input is:7153the output is:3

Answers

Answer:

The program is written in C++ language and given below in explanation section. All bold faced words are C++ keywords and symbols. Nested         if-else decision branch is used to determine smallest number of all three integers. First of all you have input three integers then the program prints smallest integer of all

Explanation:

#include <iostream>

using namespace std;

int main() {

   int num1,num2,num3;

   cout<<"enter first integers"<<endl;

   cin>>num1;

   cout<<"enter second integers"<<endl;

   cin>>num2;

  cout<<"enter the third integers"<<endl;

   cin>>num3;

   if(num1<num2){

      if(num1<num3){

           cout<<"Smallest integer is "<<num1<<endl;

       } else{

           cout<<"Smallest integer is "<<num3<<endl;

       }

   }else {

       

      if(num2<num3){

           cout<<"Smallest integer is "<<num2<<endl;

       } else{

           cout<<"Smallest integer is "<<num3<<endl;

       }

   }

  return 0;

}

how do i change my desktop theme on my chromebook?

Answers

Answer:

open Chrome.

At the top right, click More. Settings.

Under "Appearance," click Themes. You can also go to the gallery by visiting Chrome Web Store Themes.

Click the thumbnails to preview different themes.

When you find a theme you'd like to use, click Add to Chrome.

Explanation:

Google Slides is most similar to which of the following programs?
a
Adobe Photoshop
b
Microsoft Word
с
Microsoft PowerPoint
d
Microsoft Project

Answers

Answer:

Option C: Microsoft PowerPoint is the correct answer

Explanation:

Google slides is a tool to make presentations using different options like adding pictures, animations and videos. Microsoft office suite also provide a software for this purpose which is Microsoft power point.

Hence,

Option C: Microsoft PowerPoint is the correct answer

Answer:

the answer is c microsoft powerepoint

Explanation:

it just is

For a data structure, such as a stack, who is responsible for throwing an exception if the stack is empty and a pop() is called:______.A. Application User.B. Data Structure Programmer.C. No one, you don't thow an exception in this case.D. End User Programmer.

Answers

Answer:

D. End-User Programmer.

Explanation:

A stack data structure is used to holds data for programs. The first data to go into a stack is always the last to be extracted (First-in-Last-out). Data is read into the stack with the push function and retrieved with the pop function.

When the stack is empty, it means there are no data left to pop from it. If a pop function is issued at this time, the program conventionally throws an error, there is no need for the end-user to write an exception handler for it because the end-user programmer has done that already.

HTML question please help

Answers

Answer:

background-color: (Color)

Explanation:

This is actually CSS coding, as you would code it like:

Body {

background-color: (Color)

}

Java Eclipse homework. I need help coding this
Project 14A - Basically Speaking

package: proj14A
class: TableOfBases

Create a project called TableOfBases with class Tester. The main method should have a for loop that cycles through the integer values 65 <= j <= 90 (These are the ASCII codes for characters A – Z). Use the methods learned in this lesson to produce a line of this table on each pass through
the loop. Display the equivalent of the decimal number in the various bases just learned (binary, octal, and hex) as well as the character itself:
Decimal Binary Octal Hex Character
65 1000001 101 41 A
66 1000010 102 42 B
67 1000011 103 43 C
68 1000100 104 44 D
69 1000101 105 45 E
70 1000110 106 46 F
71 1000111 107 47 G
72 1001000 110 48 H
73 1001001 111 49 I
74 1001010 112 4a J
75 1001011 113 4b K
76 1001100 114 4c L
77 1001101 115 4d M
78 1001110 116 4e N
79 1001111 117 4f O
80 1010000 120 50 P
81 1010001 121 51 Q
82 1010010 122 52 R
83 1010011 123 53 S
84 1010100 124 54 T
85 1010101 125 55 U
86 1010110 126 56 V
87 1010111 127 57 W
88 1011000 130 58 X
89 1011001 131 59 Y
90 1011010 132 5a Z

Answers

Answer:

I can't just do your project but use this as a head start.

Explanation:

public class TableOfBases

{

   public static void main(String[] args)

   {

       // print out "Decimal    Binary   Octal   Hex    Character";

       //  write a for loop from 65 to 90

       for (int i ...  ) {

         // get a string for integer i with base 2

           String binary = Integer.toString (i,2);

         // get a string for integer i with base 8

           String octal = Integer.toString( ...   );

         // get a string for integer i with base 16

           String hex =  ...

        // get a char for a chararater that has ASCII code i

           char ch = (char) i ;

         // print out binary, octal and hex, and ch

       }

   }

}

/*

Project... Basically Speaking

Create a project called TableOfBases with class Tester.

The main method should have a for loop that cycles through the integer values

65 <= j <= 90 (These are the ASCII codes for characters A – Z).

Use the methods learned in this lesson to produce a line of this table on each pass

through the loop. Display the equivalent of the decimal number in the various bases

just learned (binary, octal, and hex) as well as the character itself:

Decimal Binary Octal Hex Character

65 1000001 101 41 A

66 1000010 102 42 B

67 1000011 103 43 C

68 1000100 104 44 D

69 1000101 105 45 E

70 1000110 106 46 F

....

71 1000111 107 47 G 72 1001000 110 48 H 73 1001001 111 49 I 74 1001010 112 4a J 75 1001011 113 4b K 76 1001100 114 4c L 77 1001101 115 4d M 78 1001110 116 4e N 79 1001111 117 4f O 80 1010000 120 50 P 81 1010001 121 51 Q 82 1010010 122 52 R 83 1010011 123 53 S 84 1010100 124 54 T 85 1010101 125 55 U 86 1010110 126 56 V 87 1010111 127 57 W 88 1011000 130 58 X 89 1011001 131 59 Y 90 1011010 132 5a Z

*/

Create a formula for sheet Inventory that highlights any rows where the Reorder level is below the On Hand level in yellow on excel 2016. Will mark brainliest if you can tell me how.

Answers

Answer:

Highlight the actual inventory level column and click on condition formatting, click on the drop-down button and select "Formula is" to input the formula "=B4 <= C4", select the color pattern to format the row if the condition is met and click ok.

Explanation:

Assuming the reorder level (column C4 and the on-hand level or actual inventory (column B starting at row 4) are columns in the Excel worksheet. The reorder level is the minimum level of inventory before inventory is populated. So the formula compares the value of the actual level with the reorder level, if any row is less than or equal to the reorder level, the row is formatted with the selected color.

Answer:

Highlight the actual inventory level column and click on condition formatting, click on the drop-down button and select "Formula is" to input the formula "=B4 <= C4", select the color pattern to format the row if the condition is met and click ok.

Explanation:

A programmer must add 1 to the value stored in the int variable sum. One way is given to get you started. Write two more distinct ways to add 1 to the value stored in sum.

Answers

Answer:

option 1: sum++

option 2: ++sum

Explanation:

In programming, a variable a container or memory location assigned to a value. The C++ syntax specifies the memory location type of value on the declaration. The major types of variables in C++ are; integer, float, double, char, string, and boolean.

To add 1 to an integer variable, the variable value could be summed with one and assigned to that same variable or '++before' and 'after++' with adds one to the variable before and after the execution of a statement.

Could someone help! I need to write a Python program based on Graphical User Interface.
The sum of the terms of an arithmetic progression and the identification of that value
with being “LESS OR EQUAL TO 50” or “GREATER THAN 50”
The program must have a program presentation window, containing at least one image and
two buttons, which will open other windows: one for data entry (the value of the first term,
reason and number of terms) and another for presentation by group members (credits). At
window for data entry (with another image), there will be a button that when pressed (clicked)
will show the calculated sum value and the identification of that value. This may appear in the same
(data entry) window.

Answers

Answer:

I can help with the code for performing the maths but the GUI aspect of it

Define and describe NAS. Assume you must implement a shared file system within the cloud. What company would you select

Answers

Answer:

The answer is below

Explanation:

1. NAS which is an acronym for Network-attached storage is a file computer data storage whereby a server connected to a computer network allows numerous users and heterogeneous clients to possess data access from a consolidated storage capacity.

For example various users on a local area network having data access to the central storage through a standard Ethernet connection.

2. Rackspace: this is because it offers a wide range of cloud computing services including but not limited to cloud hosting that covers but no huge subscribers.

They have a huge and efficient capacity across the globe.

They also offer pay as you go, which can be cheaper to manage.

Cloud vendors that are hosting hardware, operating system, database, and other software, which clients can then use to build their own applications, are said to be providing: _______

a. Software as a Service.
b. Hardware as a Service.
c. Platform as a Service.
d. Service Oriented Architecture.
e. Service Level Agreement.

Answers

Answer:

a. Software as a Service.

Explanation:

These Cloud vendors are said to be providing Software as a Service. This is because regardless of that the underlying specs are in regards to hardware, operating systems, database, etc. The vendor is selling a subscription to their cloud software which bundles all of these services together. Therefore, what they are ultimately providing is a Software that the individual can use as a service, and enjoy all of the included benefits/capabilities.

Olivia wants to send a report to her boss concerning an upcoming project. Which communication format should she use to send a formal message to her boss? A. email B. chat C. forum D. blog

Answers

Answer:

A. Email. It is formal

Explanation:

Answer:

Email

Explanation:

Best practices for designing an interface include being purposeful in page layout, think about defaults and making the interface complex.

Question 5 options:
True
False

Answers

True because they don’t have to like a lot more than you think you have to like that lol

With the advent of cloud computing, different units within a business now share data much more easily. The sharing of data with their suppliers and distributors is also much more streamlined. This is an example of:___________

Answers

Answer:

Electronic data interchange

Explanation:

Electronic data interchange is often referred to or shortened to EDI. It is a contemporary strategy in which various firms carry out or electronically discharge information. Unlike the typical or conventional style of passing information through paper-based.

The purpose is to have an easy and efficient form of transactions without making extraordinary appointments.

Hence, in this case, The sharing of data by businesses with their suppliers and distributors which is also much more streamlined is an example of ELECTRONIC DATA INTERCHANGE

Determines the steps in the process, the material, and the tools to make

high quality products.

Answers

Explanation:

In order to make high quality products and tools:

1. We should select the proper raw material that we want to make product with.

2. Every metal or every material have certain properties or characteristics. So choose the material properly for the product so that the right amount of hardness or stiffness or any other characteristics necessary for the product is maintained.

3. The process selection should also be carefully chosen.

4. The product should be such that it is made out of limited resources but can give maximum output.

5. Post production process should be done properly such as annealing,  tempering, etc to maintain its properties.

What is one requirement for achieving Continuous Deployment

Answers

Answer:

You need to get everything in version control. You need to automate the entire environment creation process.

Explanation:

You need a deployment pipeline where you can create test and production environments, and then deploy code into them, entirely on demand.

hope this helped ^^

The one requirement for achieving Continuous Deployment is to get everything in version control. You need to automate the entire environment creation process.

What are the requirements to create test and production?

One need a deployment pipeline where you can create test and production environments, and then deploy code into them, entirely on demand. Development pipeline is a central part of continuous deployment.

Development pipeline  can be  used to provide quick feedback to the team during deployment. Development pipeline works in different ways and  software deployment can be divided in different stages and each stage is used to run a task to complete a deveploment on continuous basis.

System deployment is a challenging task that is an essential part of the software development lifecycle (SDLC), but it is almost completely overlooked by writers in favor of more exciting subjects like distributed object creation, components, or the newest SDK.

Therefore, The one requirement for achieving Continuous Deployment is to get everything in version control. You need to automate the entire environment creation process.

Learn more about environment on:

https://brainly.com/question/13107711

#SPJ2

Please help! I need to submit this quick!

Answers

Answer:

B, C, A

Explanation:

i think those are right

Select the correct navigational path to edit the name of a cell range using name manager

Answers

Answer:

Formula, Name Manager, Edit

Explanation:

for work

Answer:

Formula, Name Manager, Edit

Explanation:

Just did the assignment for Edge 2021

Plz click the Thanks button :)

<Jayla>

What is the Big-Oh of the following computation? int sum = 0; for (int counter = 1; counter < n; counter++) sum = sum + counter;

Answers

Answer:

The Big-O notation of the algorithm is O(n)

Explanation:

The declaration and update of the integer variable sum is a constant of O(1). The for loop statement, however, would repeat relative to the size of "n", increasing the counter variable and updating the sum total by the counter.

How does SQL allow implementation of the entity integrity and referential integrity constraints?

Answers

Explanation:

Entity Integrity

The Entity Integrity helps to ensure each row in a table to be a uniquely identifiable entity. For example, product ID column  of products table is a primary key for the table.

Entity integrity ensures any two properties for the primary keys. The primary key for a row is unique. The primary key is not null, no component of the primary key my be set tonal. This property is unique and the second property ensures that primary key has a meaning has a value.

Referential integrity

The Referential integrity make sure that the relationship between tables remains or data is inserted, deleted or even modified. It specifies that the value that appears in a certain relation for a given set of some attributes, it also appears for the certain set of attributes in some other relation.

Referential triggered actions:

The Referential integrity actions are mostly triggered by physical and not by logical, or updates to unique value.

System trigger implement referential integrity actions.

What is the purpose of an End User License Agreement?
to ensure that software users understand their rights and responsibilities
to ensure that software users understand how to use and install the program
to require users to erase installer files after a software migration project
to license users to make multiple changes to proprietary software

Answers

Answer: A. To ensure that software users understand their right and responsibilities

Explanation:

End-User License Agreements are vital for preserving the rights of the company owner/licensor. The correct option is A.

What is an End-User License Agreement?

End-User License Agreements are vital for preserving the rights of the company owner/licensor as well as outlining the terms of usage and controlling the end expectations of the user.

The purpose of the end-user license agreement is to ensure that software users understand their rights and responsibilities.

Hence, the correct option is A.

Learn more about the End-User License Agreement:

https://brainly.com/question/14681311

#SPJ2

Create a program that displays a menu to select addition, subtraction, or multiplication. Using random numbers between 0 and 12 (including 0 and 12), present a math problem of the type selected to the user. Display a "correct" or "incorrect" message after the user enters their answer. In C++

Answers

Answer:

This question is answered using C++

#include<iostream>

#include <cstdlib>

#include <ctime>

using namespace std;

int main(){

   int ope, yourresult;

   cout<<"Select Operator: \n"<<"1 for addition\n"<<"2 for subtraction\n"<<"3 for multiplication\n";

   cout<<"Operator: ";

   cin>>ope;

   srand((unsigned) time(0));

   int num1 = rand() % 12;

   int num2 = rand() % 12;

   int result = 1;

   if(ope == 1){

       cout<<num1<<" + "<<num2<<" = ";

       result = num1 + num2;

   }

   else if(ope == 2){

       cout<<num1<<" - "<<num2<<" = ";

       result = num1 - num2;

   }

   else if(ope == 3){

       cout<<num1<<" * "<<num2<<" = ";

       result = num1 * num2;

   }

   else{

       cout<<"Invalid Operator";

   }

   cin>>yourresult;

   if(yourresult == result){

       cout<<"Correct!";

   }

   else{

       cout<<"Incorrect!";

   }

   return 0;

}

Explanation:

This line declares operator (ope) and user result (yourresult) as integer

   int ope, yourresult;

This prints the menu

   cout<<"Select Operator: \n"<<"1 for addition\n"<<"2 for subtraction\n"<<"3 for multiplication\n";

This prompts the user for operator

   cout<<"Operator: ";

This gets user input for operator

   cin>>ope;

This lets the program generates different random numbers

   srand((unsigned) time(0));

This generates the first random number

   int num1 = rand() % 12;

This generates the second random number

   int num2 = rand() % 12;

This initializes result to 1

   int result = 1;

If the operator selected is 1 (i.e. addition), this prints an addition operation and calculates the actual result

   if(ope == 1){

       cout<<num1<<" + "<<num2<<" = ";

       result = num1 + num2;

   }

If the operator selected is 2 (i.e. subtraction), this prints an subtracttion operation and calculates the actual result

   else if(ope == 2){

       cout<<num1<<" - "<<num2<<" = ";

       result = num1 - num2;

   }

If the operator selected is 3 (i.e. multiplication), this prints an multiplication operation and calculates the actual result

   else if(ope == 3){

       cout<<num1<<" * "<<num2<<" = ";

       result = num1 * num2;

   }

If selected operator is not 1, 2 or 3, the program prints an invalid operator selector

   else{

       cout<<"Invalid Operator";

   }

This gets user input

   cin>>yourresult;

This checks if user result is correct and prints "Correct!"

   if(yourresult == result){

       cout<<"Correct!";

   }

If otherwise, the program prints "Incorrect!"

   else{

       cout<<"Incorrect!";

   }

   return 0;

Other Questions
Pleaseee helpp asap Describe the French economic and political system that caused the creation of the Declaration of the Rightsof Man and Citizen. Match the word to a synonym.1. lassfriend2. buddybrook3. soilbaby4. infantgirl5. glancelook6. boardplank7. ladsofa8. streamground9. couchboy10. automobilecar Using the word problem below, WRITE AN EQUATION to model the situation. Do NOT solve.A plumber charges a $40 service fee to come to your house. He also charges $50 for each hour that he works. The plumber charges you a total of $190. Use h for the number of hours. Which graph represents a linear function -2/3 x 3/4Please help! Solve the equation by extracting square roots. 3(x+2)^2=8 HEEEEELP NOOOOWWWW its really easy if you understand this type of class In the root structure there is an area where root cells get older, what is the name of that area? aarea of getting older barea of cell elongation carea of maturation dapical meristem Ferns often have small bumps called sori arranged in rows on their undersides. What are these structures?A) Spore capsules.B) Seed capsules.C) Nodules containing symbiotic bacteria.D) Parasites. If a story is told in third person, you might not learn much about the main character's feelings and motivations. However, you will get Regional erosion occurs at a rate of 2 m per 1,000 years. How much regional erosion will occur over 100,000 years? A) 20 m B) 200 m C) 2,000 m D) 100,000 m What are the two ways to determine if something is a function List what body systems perform the following life processes- growth, respiration, nutrition. What organelle performs nutrition, reproduction, and growth? How does the excretory system work together with the respiratory system? Find the coordinates of the missing endpoint if W is the MIDPOINT of XY.W(4,-2) X(7,-4) Which rock type is an example of igneous glass?1. lava2, gabbro PLS HURRY3. obsidian4. rhyolite Use the table. Make a scatter plot relating the distance of various cities from the metro area to the population of the cities. SOMEONE HELP ASAP ILL GIVE BRAINLIEST A town planner wants to build two new streets, Elm Street and Garden Road, to connect parallel streets Maple Drive and Pine Avenue. Trapezoid E F G H is shown. F G is Maple Drive, G H is Garden road, E H is Pine avenue, and E F is Elm Street. Sides F G and E H are parallel. Angle G is 108 degrees.In trapezoid EFGH, EF HG. What is the measure of the angle between Elm Street and Pine Avenue?5472108144 A tv is 37 inches long and the width is 12 inches how tall is the tv? Select the sentences in the paragraph that explain only the dark lines that are produced in the absorption spectra. Select all that apply.A light is shown through a cold, dilute gas. Over time, excited atoms revert to their original lower energy state. Photons emitted travel in different directions that the original photon. Gaps are produced in the light spectra that correspond to wavelengths of absorbed photons. Dark lines in an absorption spectrum of light can be seen when the gas lies between the light source and observer. anyone her watch technoblade1+1 A line passes through the points (4,17) and (7,20). Write a linear function rule in terms of x and yfor this line.The linear function rule is y=?