MAKE SURE IT DISPLAYS THE LARGEST VALUE AND THAT THE RANGE IS INCLUDED AS WELL AS 5 NUMBERS BEING POSITIVE, 4 NEGATIVE, AND ONE IS ZERO. Write a short computer program in C++ that will read 10 integer numbers entered from a keyboard and then print the smallest number, the largest number, and the average value. Assume all numbers are in the range [-500 … +500]. Execute the program, entering 10 values scattered across the above range, with 5 non-zero positive numbers, 4 negative numbers, and one zero. It is NOT required that that the program check for invalid entries - you may assume that appropriate values are entered correctly. Submit the source program listing and the results. Example: 30 -25 18 -3 10 0 100 -100 200 -200 Smallest = -200 Largest = 200 Average = 3
MAKE SURE IT DISPLAYS THE LARGEST VALUE AND THAT THE RANGE IS INCLUDED AS WELL AS 5 NUMBERS BEING POSITIVE, 4 NEGATIVE, AND ONE IS ZERO.
Write a short computer program in C++ that will read 10 integer numbers entered from a keyboard and then print the smallest number, the largest number, and the average value. Assume all numbers are in the range [-500 … +500]. Execute the program, entering 10 values scattered across the above range, with 5 non-zero positive numbers, 4 negative numbers, and one zero.
It is NOT required that that the program check for invalid entries - you may assume that appropriate values are entered correctly.
Submit the source program listing and the results.
Example: 30 -25 18 -3 10 0 100 -100 200 -200
Smallest = -200 Largest = 200 Average = 3
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images