Question: In C programming DESCRIPTION Write a program that: 1. Prompts a user to enter 5 floating point numbers (test scores) in the range 0.0 to

 In C programming DESCRIPTION Write a program that: 1. Prompts a

In C programming

DESCRIPTION Write a program that: 1. Prompts a user to enter 5 floating point numbers (test scores) in the range 0.0 to 100.0. 2. Stores the numbers in an array of doubles. 3. Outputs the numbers entered on one line, each number followed by a comma (except the last number). 4. Also outputs: o the total number of points o the average of the array elements o the value of the maximum array element o the value of the minimum array element You will need to validate the user's input for this exercise. If the user enters a number outside the legal range, print the message "Invalid Input" and prompt the user again for a valid number. NOTE: You can use scanf and do not need to test for character input. Sample output (sample input is underlined): Enter Score 1: 36.0 Enter Score 2: -1000 Invalid Input Enter Score 2: 89.5 Enter Score 3: 42.0 Enter Score 4: 66.3 Enter Score 5: 93.0 You entered: 36.000000, 89.500000, 42.000000, 66.300000, 93.000000 Total Score: 326.800000 Average Score: 65.360000 Max Score: 93.000000 Min Score: 36.000000 HINTS: Using a temp variable in the scanf statement might be a good idea! Comma separated output was a zyBook Challenge Activity

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!