Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Issues In Database Management A Refernce For The Thinking Practitioner

Authors: Fabian Pascal

1st Edition

0201485559, 978-0201485554

More Books

Students also viewed these Databases questions

Question

4. Help trainees set challenging mastery or learning goals.

Answered: 1 week ago

Question

2. Enrolling employees in courses and programs.

Answered: 1 week ago