Write a Java program to do the following USING ARRAYS only (no functions no methods) NO hard coding (hard coding): int x[] ={ 1,-4 ,7, ... }; input data from the user No random entries 1) input 15 integers (input validation , all numbers must be between -10 and 50 inclusive. ( user must be prompted to enter the values, no random entries) use a while loop NOT if statment 2) find the largest number in the array. 3) Find the Smallest Number in the array 4) Find the average of the numbers in the array 5) Display the array elements in reverse order 6) Display negative numbers 7) Display the odd numbers Note: use a seprate loop for each operation Note: when the program runs, prompt the user to select options 2 to7 (Use either if else or switch statements) note the program should not end after every selection, the user must be presented with a choice to either quit or to select another option. run the program for all options
Write a Java
NO hard coding (hard coding): int x[] ={ 1,-4 ,7, ... }; input data from the user
No random entries
1) input 15 integers (input validation , all numbers must be between -10 and 50 inclusive. ( user must be prompted to enter the values, no random entries) use a while loop NOT if statment
2) find the largest number in the array.
3) Find the Smallest Number in the array
4) Find the average of the numbers in the array
5) Display the array elements in reverse order
6) Display negative numbers
7) Display the odd numbers
Note: use a seprate loop for each operation
Note: when the program runs, prompt the user to select options 2 to7 (Use either if else or switch statements)
note the program should not end after every selection, the user must be presented with a choice to either quit or to select another option.
run the program for all options
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images