Modify the previous program to read in a list of floating-point values. The end of the input is indicated by the user entering a sentinel value -999.
The program will display the following:

the average of the values,

the largest of the values,

The smallest of the values,

the range, that is the difference between the smallest and the largest.

Recommended Answers

All 3 Replies

I suggest you post this in the Java forum, but first check the DaniWeb Member Rules and "provide evidence of having done some work yourself if posting questions from school or work assignments"

Member Avatar

What previous program? I don't see one.

iamthwee: I assume he's referring to his other thread, where he also just posted his assignment.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.