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

following information.

a. Count of all numbers which are greater than 1 and less than 11. If no such numbers are entered, 0 for the

count value should be displayed.

b. Count of all prime numbers. The prime numbers are numbers which are divisible by 1 and itself. If no

prime numbers are entered, 0 for the count value should be displayed.

c. Average of all prime numbers which are greater than 5. If no prime numbers greater than 5 are entered, 0

for the average value should be displayed.

d. Largest number of all numbers entered from the keyboard.

e. Ascending order of two smallest numbers entered from the keyboard.

f. Value of A [where A =3.14*Rad*Rad; Rad – average of all numbers entered from the keyboard].

N is a constant and its value is 8.

number. Assume N=3, if the largest digit of your student id number is less than 3.

The program should contain only a main function. User defined functions and arrays should not be used. classes and linked lists should not be used.

0