Question: Write a program that reads a set of floating-point values. Ask the user to enter the values, then print the average of the values.
Write a program that reads a set of floating-point values. Ask the user to enter the values, then print
• the average of the values.
• the smallest of the values.
• the largest of the values.
• the range, that is the difference between the smallest and largest.
Of course, you may only prompt for the values once.
Step by Step Solution
3.45 Rating (165 Votes )
There are 3 Steps involved in it
import javautilScanner public class Main public static void mainString args Scanner input new ... View full answer
Get step-by-step solutions from verified subject matter experts
