Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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 ActivityStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started