Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

in java I want Class for admin Authorization to delete the reservation and give

ID: 3833216 • Letter: I

Question

in java I want Class for admin Authorization to delete the reservation and give a night free just this class

A hotel wants to implement a system that helps it in reservation and keeping track ofits employees and customers. The system should be able to store its employees' information in an employees' file. Each employee has a name, id, salary and a hire date, The employee can be a manager. Each manager has a list of permissions and an extra 10% to his salary. In the hotel there is a list of rooms and sweets, each room has a room number, type of bed, price and description. The sweet is a set of rooms. The hotel has special discounts in some events. The customer can chose one of these rooms cheek if it is available are not in the date he wants to reserve in. if the customer wants to take the room he has to fill in his information and he will be added to the list of customers. The customer's information is first name, last name, date of birth, email and phone number. The customers must be saved in a customers' file. To reserve a room for a customer you have to check if his age is legal are not and if the room he wants available are not. The system must also calculate the total price for the customer according to the number of nights he will stay in the room.

Explanation / Answer

package roombooking; import java.util.ArrayList; import java.util.Scanner; class Room { private String roomID = null; private boolean booked = false; Room(String roomID) { this.roomID = roomID; } String getRoomID() { return roomID; } void cancel() { booked = false; } boolean isBooked() { return booked; } public void setBooked(boolean booked) { this.booked = booked; } } class RoomDB { private ArrayList room; private String[] roomID = {"Room1","Room2"}; RoomDB(){ room = new ArrayList(); for(int i=0;i