Write a program to extend the below program, by adding an option 'f' to the menu program. If this option is chosen, the program should ask the user to enter 10 integers. The program should store each integer into an array (as each one is entered). Once the array contains the 10 integers, the program should output: a) The average of the 10 numbers entered b) The highest number entered c) The lowest number entered
Write a program to extend the below program, by adding an option 'f' to the menu program. If this option is chosen, the program should ask the user to enter 10 integers. The program should store each integer into an array (as each one is entered). Once the array contains the 10 integers, the program should output:
a) The average of the 10 numbers entered
b) The highest number entered
c) The lowest number entered
import java.util.Scanner; |
Step by step
Solved in 3 steps with 1 images