![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 20.08.2020 04:01 alyssabond5219
#include using namespace std;void Swap(int x, int y); //prototypeint main(){ int num1, num2; cout << "Please enter two numbers to swap, the same numbers will quit." << endl; cin >> num1 >> num2; while (num1 != num2) { Swap(num1,num2); cout << "After swap, the numbers are " << num1 << " " << num2 << endl; cout << "Please enter two numbers to swap, "; cout << "the same numbers will quit." << endl; cin >> num1 >> num2; } cout << "Thanks!" << endl; return 0; }This subroutine swaps two numbers//void Swap(int x, int y){ int temp; temp = x; x = y; y = temp;}1. Type in the above program as swap. cpp. Add a comment to include your name and date. Compile and run with different values.2. To find out why this is not working, add the following output statements to the swap function. a. cout << " beginning of swap" << x << " " << y << endl;b. cout << " end of swap" << x << " " << y << endl;Are the variables being swapped inside the swap function?3. Explain why this program is not working correctly.4. Fix the program so the swap will work. Compile and run and be sure the swap works.5. Submit a copy of the final listing and output. Also include a copy of the hierarchy chart for the program.
![ansver](/tpl/images/cats/User.png)
Answers: 1
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 21.06.2019 15:10
Match the terms in the hlookup syntax with their explanation. a. lookup value b. data table c. row index d. mode 1. name of the table that contains the value 2. specifies if an exact match must be found 3. value to be searched 4. name of the row that contains the value
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 21:00
The average cost of one year at a private college in 2012-2013 is $43,289. the average grant aid received by a student at a private college in 2012-2013 is $15,680. what is the average student contribution for one year at a private college in 2012-2013?
Answers: 3
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 23:00
Which type of tab stop is most for weights and measurements?
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 15:00
In excel, what happens to the cell contents when you click and drag a cell into multiple cells?
Answers: 1
You know the right answer?
#include using namespace std;void Swap(int x, int y); //prototypeint main(){ int num1, num2; cout &l...
Questions
![question](/tpl/images/cats/mat.png)
Mathematics, 30.01.2022 06:50
![question](/tpl/images/cats/mat.png)
Mathematics, 30.01.2022 06:50
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 30.01.2022 06:50
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 30.01.2022 06:50
![question](/tpl/images/cats/biologiya.png)
Biology, 30.01.2022 06:50
![question](/tpl/images/cats/mat.png)
Mathematics, 30.01.2022 06:50
![question](/tpl/images/cats/mat.png)
Mathematics, 30.01.2022 06:50
![question](/tpl/images/cats/mat.png)
Mathematics, 30.01.2022 06:50
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 30.01.2022 06:50
![question](/tpl/images/cats/ekonomika.png)
![question](/tpl/images/cats/geografiya.png)
Geography, 30.01.2022 07:00
![question](/tpl/images/cats/mat.png)
Mathematics, 30.01.2022 07:00
![question](/tpl/images/cats/en.png)
English, 30.01.2022 07:00
![question](/tpl/images/cats/pravo.png)
Law, 30.01.2022 07:00
![question](/tpl/images/cats/mat.png)
Mathematics, 30.01.2022 07:00
![question](/tpl/images/cats/obshestvoznanie.png)
Social Studies, 30.01.2022 07:00