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

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter5: Repetition Statements
Section5.5: A Closer Look: Loop Programming Techniques
Problem 14E
icon
Related questions
Question

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

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,