write a c program that reads n positive numbers


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].

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: write a c program that reads n positive numbers
Reference No:- TGS0482740

Expected delivery within 24 Hours