Question
Could you please help me in JAVA. I really appreciate it Write a well structured and internally commented program according to the following specs Create
Could you please help me in JAVA. I really appreciate it
Write a well structured and internally commented program according to the following specs
Create an array that can hold up to 10 integers.
Run through a loop asking the user to enter a positive integer (max of 10 times), but allow the input to stop early if the user enters a 0 or a negative number. Keep track of how many items are in the array and output that number after the input is complete.
Output the list.
Randomly reorganize the list (see the Shuffle program VideoNote we looked at in class Monday).
Ask the user to enter a single integer and output "IN THE LIST" or "NOT IN THE LIST" accordingly.
Output all of the values in the reorganized list.
That's it.
Sample data:
If the user enters 5 6 8 33 51 0 The array should have the values 5 6 8 33 and 51 in it, and you'd output something like:
There are 5 values in the list. The list is: 5 6 8 33 51 The shuffled list is: 8 51 33 5 6
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started