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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!