Question: Input Loop with Summary Calculations CSIS 123 C++ Programming Fundamentals Assign06 - LoopCalculations Input Loop with Summary Calculations Create the Windows program described in a

Input Loop with Summary Calculations

Input Loop with Summary Calculations CSIS 123 C++ Programming Fundamentals Assign06 -

CSIS 123 C++ Programming Fundamentals Assign06 - LoopCalculations Input Loop with Summary Calculations Create the Windows program described in a suitable folder. Name the Project Assign06-LoopCalculations ave the final version of the project to your H: drive and put a copy on X: to turn in for grading. Prom input until the user enters a negative value. This processing must include pt the user to input an integer value. Process the entry and continue to prompt for additional integer 1. A running total (sum) of the integer values input. Use the+ operator to increase stored sum. 2. Compare previous maximum and minimum values. Set to current entry if it represents new high or lo 3. Increment a 4. Keep a count of the total number of integer values input. Use the increment oper : counter for each odd or even integer entered. Use modulus operator (%) to find odd or even. ator++ to tally count. Calculate an a Both the counter and total sum verage (floa ating-point decimal) of the integer values entered (if count is greater than zero) should be integers. Use a static_cast to get the correct average. ClVCProjects tLoopCalculations IDebug u ter an integer (negative value to quit): 1? Enter an integer : 64 Enter an integer : 1 alues Entered: Average value: 54.3333 Minimum value: 6 Sun of nunbers: Even numbers Odd nunbers: Press to end Declare variables to store each of the required values for display after the loop ends - at the end of the program. Show each calculated value right-justified in a field 8 characters wide. (see example above) For calculations to work within the loop, most variables will need to be initialized to zero. Initialize the maximum and minimum holding variables to a negative number (-1 is suggested). These values change a if at least one positive integer entry is made. Make the program work even when ne positive entry is mad ClVCProjects lLoopCalculationsIDebug Enter an integer (negative value to Quit) 9999 9 alues Entered: un of nunbe rs: Qverage value: Maxinun value: Mininun value: 0 Press at the beginning of the prograrn to make Include the preproc setw(8) availabl le to the lines inserted into the cout output stream at the end of the input loop

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!