Question: Write a program using java language that will do the following: 1. Ask an input for the number of rooms 2. Ask the range

Write a program using java language that will do the following: 1.

Write a program using java language that will do the following: 1. Ask an input for the number of rooms 2. Ask the range of numbers (from minimum to maximum) that will be stored in the rooms Minimum - the smallest number that will be stored in the rooms Maximum - the largest number that will stored in the rooms 3. Write a code that will randomly fill in the rooms between the range given in number 2. 4. Print the contents of the rooms 5. Find the room number of any number that is entered by the user 6. Search the contents of the rooms - If the number entered is found, print its room number If the number entered is not in the room, print that it is not found

Step by Step Solution

3.33 Rating (144 Votes )

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 Programming Questions!