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>
1
Expert's answer
2013-05-21T07:41:42-0400
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'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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS