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.

>how the hell do you do this?!
Start by learning from the previous assignment, as this assignment suggests. We don't do homework for you, show an attempt or you'll encounter nothing but stoney silence.

Hi,

If you are completely lost with it, try some psuedo code to help you out.

Function to read in 10 numbers
--> Don't forget error checking

Function to add them up

Function to average them

Function to find smallest

Function to find largest

Function to list in reverse

Main program to manage the calling of the functions.

Now, you are going to need to fill in the functions with what needs to happen. How do you find the largest? How do you list them in reverse?

You are going to need to choose some storage data types... Perhaps an Array, perhaps a double-linked list. You are going to need some variables.

And it is your assignment, so please get some ideas on paper, and come back if you have some syntactical questions, such as the difference between an assignment, and an equal comparison.

Christian

try putting the 10 ints into an array ? Then getting the array populated from the user? Then performing the maths after ???

ibmackin have you tried any code at all, if so post it. The forum rules say we dont do homework for you, but we will have a go at fixing mistakes in homework you HAVE ALREADY DONE! |:)

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.