Question: program in C++ with the proper indentation that does the following: 1. Declare a decimal value of spaces for storing a user inputted number, a
program in C++ with the proper indentation that does the following:
1. Declare a decimal value of spaces for storing a user inputted number, a total, an average
2. Declares a whole number type constant value space and Stores the value of 10 as the number of times the program get the input from the user
3. Using a repetition structure that runs 10 times,
4. After it is done getting all the inputs from the user and finding the total, Calculates the average by dividing the total with the number of numbers
5. Displays the total and average of the inputted numbers
a) Asks (prompts) the user to input a value by using the prompt Enter a number: on the screen
b) Reads the users inputted value from the keyboard and stores it in the variable created for the user-inputted number
c) Adds it to the total
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
