Question: 1. Write a program which accepts two integers as an argument, and will return its sum. Call this function from main () and print the

  • 1. Write a program which accepts two integers as an argument, and will return its sum. Call this function from main () and print the results in main (). (25 points) 2. Write a language program in C++ which accepts the user's first and last name and print them in reverse order with a space between them. (25 points) 3. Write a program in C++ that converts kilometers per hour to miles per hour. Program will accept as input the speed into km/h and will output the result into m/h (25 points) 4. Write the output of the following program: (25 points) #include _iostream_ using namespace std; void X(int &A, int &B) { A=A+B; B=A-B; A=A-B; } int main() { int a = 4, b = 18; X(a,b); cout __ a __ ", " __ b; return 0; } 0; }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!