Question: In C + + Calculate a Running Total for user defined set of numbers to be entered Ask the user how many numbers they would

In C++ Calculate a Running Total for user defined set of numbers to be entered
Ask the user how many numbers they would like to enter to be added together for a running total
and perform the specified operation on the numbers and output the result of the operation.
Choose the type of repetition structure (loop) to be used for input of the numbers.
Remember to verify and validate your input.
Input:
1. User specified number of entries to be added to a total
2. Numeric entry to correlate to the number of entries specified to be included in the total.
Processing - Add the entered number into the running total
Output Print the results in a nicely formatted way.
Example:
You requested to add 5 numbers to calculate a running total.
Your entries were 10,11,15,20,33
Your final total is 89
NOTE** Also display the running total as it stands with each new entry before it is added**
Example Output:
pass#1 Running Total is 0 Running total is 0 prior to any numbers being added
pass#2 Running Total is 10- Running total is 10, only first number has been added
pass#3 Running Total is 21
pass#4 Running Total is 36
pass#5 Running Total is 56

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!