Question: Using while loop Write the code in C++ And fallow the instructions please! * I need a valid unique answer better than the other answers

Using while loop
Write the code in C++
And fallow the instructions please!
* I need a valid unique answer better than the other answers in the website !
 Using while loop Write the code in C++ And fallow the

CSIS 123 C++ Programming Fundamentals Input Loop with Summary Calculations End Create the Windows program described in a suitable folder. Name the Project Assign06-LoopCaleulations. Save the final version of the project to your H: drive and put a copy on X: to turn in for grading Prompt the user to input an integer value. Process the entry and continue to prompt for additional integer input until the user enters a negative value. This processing must include: 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 low 3. Increment a counter for each odd or even integer entered. Use modulus operator (%) to find odd or even. 4. Keep a count of the total number of integer values input. Use the increment operator++ to tally count 5. Calculate an average (floating-point decimal) of the integer values entered (if count is greater than zero) Both the counter and total sum should be integers. Use a statie_cast to get the correct average. nter an integer (negative value to Quit: 17 ter an integer (negative value to Quit8 nter an integer Knegative value to Quits 64 nter an integer (negative value to Quit)i158 nter an integer (negative value to Quit 53 Enter an integer (negative value to Quit: 26 Enter an integer Cnegat ive value to Quit): alues Entered: in of nunbers iverage value: 54.3333 326 Mininun value 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 only if at least one positive integer entry is made. Make the program work even when no positive entry is made. ts LoopCakulation ter an integer Cnegative value to Quit)i -9999 alues Entered: Maxinun value Hininun value Even nunbers i Odd nunhers i ress (Enter) to end.... The minimum value comparison of the very first input value may require special handling. This input value could never be negative or less than the -1 already stored, or else the loop would terminate. An if statement can be used to deal with this special case within the loop. Otherwise, set both minimum and maximum values before the loop begins, taking advantage of a priming input read used to obtain the first input value. Minimum and maximum values always need to be set to the very first integer input (zero or greater) include the preprocessor directive #include at the beginning of the program to make setw(8) available 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!