java programming assignment

Get perfect grades by consistently using www.college-experts.com. Place your order and get a quality paper today. Take advantage of our current 20% discount by using the coupon code GET20


Order a Similar Paper Order a Different Paper
Write a program that reads input for occupied hotel rooms and using the Java API, sorts 
the rooms, then search for a particular room to see if it is occupied or not. 
The program will utilize a loop to get input for occupied hotel rooms until a sentinel value of 
your choosing is entered. 
The program should utilize the Java API to sort the array of rooms. 
The program then asks for input for a particular room number. 
Utilize a binary search to search for a particular room and outputs “Occupied” or 
“Unoccupied”. 
The following information should be read in: 
Room Number (as integer) 
——————–
Binary Search Method (user written NOT the Java API) 
Receives the array of hotel rooms and the room to search for as arguments. 
Return true or false depending on if room is found. Output results from the main method. 
—————————
 
Example output of your program 
Example Run 1: Please enter an occupied hotel room number, -1 to quit 
56 
19 
160 
34 
18 
 1 
Please enter a room to search for: 160 
This room is “Occupied” 
Example Run 2: Please enter an occupied hotel room number, -1 to quit 
56 
19 
160 
34 
18 
-1 
Please enter a room to search for: 47 
This room is “Unoccupied”
Writerbay.net

Do you need help with this or a different assignment? We offer CONFIDENTIAL, ORIGINAL (Turnitin/LopesWrite/SafeAssign checks), and PRIVATE services using latest (within 5 years) peer-reviewed articles. Kindly click on ORDER NOW to receive an A++ paper from our masters- and PhD writers.

Get a 15% discount on your order using the following coupon code SAVE15


Order a Similar Paper Order a Different Paper