Question: can you show how to do this with C++ Write the necessary program in C++ that does the following: 1. Declares a decimal value of

can you show how to do this with C++
can you show how to do this with C++ Write the necessary
program in C++ that does the following: 1. Declares a decimal value

Write the necessary program in C++ that does the following: 1. Declares 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, a) Asks (prompts) the user to input a value by using the prompt "Enter a number: "on the screen b) Reads the user's inputted value from the keyboard and Stores it in the variable created for user inputted number c) Adds it to the total Assignment \#6 Description (continued...) 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

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!