Question: This Program Needs to Be Completed in C Please 4.13 Lab: Min, Max, Mean Write a program that finds the smallest (min), largest (max), and

 This Program Needs to Be Completed in C Please 4.13 Lab:

This Program Needs to Be Completed in C Please

4.13 Lab: Min, Max, Mean Write a program that finds the smallest (min), largest (max), and average (mean) of N values entered by the user. Your program should begin by prompting the user for N, the number of values to be entered. Then the program should accept that number of values, determining the min, max, and mean. Then it should display those values. When scanning for a value for N, the program should use error checking to protect against erroneous inputs from the user and only accept positive integer values. The other values entered can be any value, but error checking should still be employed to ensure that the user entered a value. If there is ever an incorrect input the user should be re-prompted for the value and told of the error Steps for the program Prompt the user for N Scan the value of N Prompt and Scan for N Values Simultaneously search for Max and Min values Add all values to generate a sum .Calculate the average by dividing the sum by N, MEAN sum/N .Display min, max, and mean values An example run of the program is given below where the user enters five values (ie N-5) MN, MAX, nd MEAN CALCULATOR How mny value 5 re to be entered?: -4 INPUI ERROR! How mny value 5 re to be entered?: Value 1: 2 Vlue 2: INPUI ERROR! Value 2: 17 Value 3: 3 Value 4: 5 The minimum vlue 2, the maximum vlue 17, and the average vlue i 6.75

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!