Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribedUse 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Learning PostgreSQL

Authors: Salahaldin Juba, Achim Vannahme, Andrey Volkov

1st Edition

178398919X, 9781783989195

More Books

Students also viewed these Databases questions

Question

3. Is there opportunity to improve current circumstances? How so?

Answered: 1 week ago

Question

2. What do you believe is at the root of the problem?

Answered: 1 week ago