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.
ibmackin 0 Newbie Poster
Narue 5,707 Bad Cop Team Colleague
kc0arf 68 Posting Virtuoso Team Colleague
Acidburn 0 Posting Pro
1o0oBhP 4 Posting Pro in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.