Count of all numbers which are greater


Write a C++ program that reads N positive numbers from the keyboard, calculates and displays the following information.

a. Count of all numbers which are greater than 49.9 and less than 75.0. If no numbers greater than 49.9 and less than 75.0 are entered, 0 for the count value should be displayed.
b. Sum of all numbers which are greater than 49.9. If no numbers greater than 49.9 are entered, 0 for the sum value should be displayed.
c. Average of all numbers which are greater than 49.9. If no numbers greater than 49.9 are entered, 0 for the average value should be displayed.
d. Smallest number of all numbers entered from the keyboard.
e. Descending order of two largest numbers entered from the keyboard.
f. Value of P [where P = (Largest number entered from the keyboard/100)*Percentage;
Percentage=25].
N should be declared as a constant in your program and it should be equal to 10.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Count of all numbers which are greater
Reference No:- TGS082038

Expected delivery within 24 Hours