Question: Use C languange and execute in c program PARTC: Programming Question (16 marks) Write a program reads a list of user-input integers and then displays

 Use C languange and execute in c program PARTC: Programming QuestionUse C languange and execute in c program

PARTC: Programming Question (16 marks) Write a program reads a list of user-input integers and then displays a summary The program must prompt the user to enter a list of integers, one by one, until the user enters the number 999 (i.e. the sentinel to stop the program). a) b) Valid numbers are integers between o and 100. Any number not in this range will not be accepted and another number will be prompted. For valid numbers, find the following information: i. The number of valid numbers entered. ii. The sum of the valid numbers. iii. The average of the valid numbers. iv. The smallest number entered. v. The largest number entered c) d) The program will display the above information and also whether all numbers entered are between 15 and 40 (prints as True or False). ample Output #1: User-input values are shown in italics and underlined Enter an integer between and 100 (999 to stop)1S Enter an integer between e and 10e (999 to stop) >Z5 Enter an integer between e and 10e (999 to stop) >>3 Sorry, number must be between and 100 Enter an integer between e and 100 (999 to stop) Enter an integer between e and 100 (999 to stop) 200 Sorry, number must be between and 100 Enter an integer between e and 100 (999 to stop)>>5 Enter an integer between e and 100 (999 to stop) >> 999 27 SUMMARY: Number of integers entered is >4 Sum of integers is >> 122 The average is >> 30.50 Smallest value is >>5 Largest value is >> 75 All values entered are between 15 and 40? False Press any key to continue

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!