how the hell do you do this?!

please help asap!

a. This problem is similar to the problem in your last assignment. However, this time you will need to keep track of all integers input by the user.

b. Create a program that will read a series of ten (10) positive integers (entered one at a time) from the user. Once all integers have been entered, display the following statistics on the data:

i. the sum of all integers

ii. the average of the integers

iii. the smallest integer

iv. the largest integer

v. a list of the integers in reverse order from the order in which they were entered

c. For an additional challenge, add the following functionality:

i. If the user types in a negative integer, continue to prompt them until they enter a positive integer. When they do enter a positive integer, it will count as one of the 10 integers requested.