Question: Write a C++ program that reads 2 integer values from the keyboard (be sure to print a prompt message for the user). Then calculate and

 Write a C++ program that reads 2 integer values from the

Write a C++ program that reads 2 integer values from the keyboard (be sure to print a prompt message for the user). Then calculate and display on the screen:

the sum of the integers

the product of the integers the result of dividing the first integer by the second using integer division (integer quotient) the remainder after dividing the first integer by the second (integer remainder) the result of dividing the first integer by the second using floating-point division (floating-point quotient) the average of the integers (use floating-point division) Be sure to include identifying labels with your output. Your screen dialog should look similar to this example. Note that user input is shown in bold. Enter first integer: 10 Enter second integer: 3 Sum is 13

Product is 30

Integer quotient is 3

Integer remainder is 1

Floating-point quotient is 3.33333

Average is 6.5

Be sure that your program follows a professional programming style and includes all required documentation. See style.htm.

Write a C+program that reads 2 integer values from the keyboard (be sure to print a prompt message for the user). Then calculate and display on the screen the sum of the integers the product of the integers the result of dividing the first integer by the second using integer division (integer quotient) the remainder after dividing the first integer by the second (integer remainder) the result of dividing the first integer by the second using floating-point division (floating-point quotient) the average of the integers (use floating-point division) Be sure to include identifying labels with your output. Your screen dialog should look similar. to this example. Note that user input is shown in bold. Enter first integer: 10 Enter second integer: 3 is 13 is 30 is 3 Sum Product Integer quotient Integer remainder Floating-point quotient is 3.33333 Average is 6.5 Be sure that your program follows a professional programming style and includes all required documentation. See style.htm

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 Databases Questions!