63 204
Assignments Done
Successfully Done
In July 2018

Answer to Question #30884 in C++ for shyooma

Question #30884
Write a program that reads a list of integers from the keyboard and creates the following information:
a. Finds and prints the sum and the average of the integers.
b. Finds and prints the smallest and largest of the integers.
c. Print a Boolean (true or false) if some of them are less than 20.
d. Print a Boolean (true or false) if all of them are between 10 and 20.
The input data consist of a list of integers with sentinel. The program must prompt the user to enter the integers, one by one, and enter the sentinel when the end of the list has been reached. The prompt should look like the following:
Enter number with <return> (99999 to stop):
The output should be formatted as shown below :
The number of integers is: XXX
The sum of the integers is: xxxx
The average of the integers is: xxx.xx
The smallest integer is: xxx
The largest integer is: xxx
At least one number was < 10: <true or false>
All numbers were (10 <= n >= 90): <true or false>
Expert's answer
Unfortunately, your question requires a lot of work and cannot be done for free.
Submit it with all requirements as an assignment to our control panel and we&#039;ll assist you.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!


No comments. Be first!

Leave a comment

Ask Your question

Privacy policy Terms and Conditions