Question: This is a C++ class Programs: 1. Modify the multiplication program done in class (version that prompts user to enter two numbers from the keyboard)

This is a C++ class
Programs: 1. Modify the multiplication program done in class (version that prompts user to enter two numbers from the keyboard) as follows Change declarations so that all variables are doubles. In addition to the variables numberl and number2, you should allow for variables for a third input number (number3), and also for product, quotient, and average instead of just one variable for result Prompt the user and read in values for the three numbers using appropriate conversion specifiers for doubles Calculate the product of the three numbers, the quotient of the sum of the first two numbers divided by the third number, and the arithmetic average of the three umbers Print labeled results using f format with two decimal digits for quotient and average and e format with 3 digits after the decimal point (when in e format) for the product. 2. Write a program that prompts the user to enter three integers and reads the three values with a single scanf statement or in separate scanf statements. Write statements to find the square of each value and the cube of each value. Print the values, their squares, and their cubes in a labeled table aligned as in the example shown below. Use four lines of output statements. The output should look something like this, depending on the numbers entered Number Square Cube 64 216 36 For this problem you can proceed as follows Declare integer variables for the three numbers, the three squares, and the three cubes Find the square and cube of each number Print the table using 4 printf statements (one for labels and three for the values) (Alternatively you can embed the calculations in the printf statements. Using this method, you can proceed without needing variables for the squares and cubes.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
