Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

*Please answer the question in java *do not copy anything from the internet *I need a basic solution please do not use advanced java i

image text in transcribed

*Please answer the question in java

*do not copy anything from the internet

*I need a basic solution please do not use advanced java

i will give you a very good comment and a like

- void SelectRoomType(int roomNumber); - This method will take the room number as argument and ask the user to enter the room type. - If the room type is valid, then read this type and save it to the room number. - void changeroomType(); - Ask user to enter a valid room number. - If the room is not booked yet, then show a sorry message that the room is not booked/reserved yet. - If the room is booked, then ask the user to enter the room type. - Check of the room type is valid, if not keep asking him to enter a valid room type. - If the room type is already selected for the given room number, show a message to tell that the room type is already selected. Else, change the room type to the new type. - void DeleteReservedRoom(); - Ask user to enter a valid room number. - Check if the room is not booked yet, show a sorry message. - If the room is booked, then mark it as available and set the room type to null and the customer name to null. - void DeleteAllReservedRoom(); - Check if there are a reserved rooms and delete them from reserved rooms (mark them as available and set the room type to null and the customer's name to null), and print all rooms are deleted. - If there is no reserve room, print that there are no reserved rooms to delete. - void showAllReservedRoomsInformation (); - print all reserved rooms information ("Room Number", "Room Type", "Customer Name"). - if there is no room reserved, then show a message that there is no room booked yet. - boolean checkRoomType (String room Type); - This method will take the room type as argument and return true if the type is one of: Single, Double, King, Super. And return false otherwise. - int askForRoomNumber (); This method will ask user to enter a valid room number (01 - MAX ROOM NUMBER) and return that number. - If the entered room number is not valid, keep asking him to enter a valid room number. - int listAvaliableRooms (); This method will print all available rooms only (rooms number). All private methods should be called inside Hotel class wherever is needed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions