Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Need help with the pseudocode for the follow hotel reservation class. Reservations Class Reservation { MasterList master; List roomList; Int roomPrice; (gets from roomList ArrayList)
Need help with the pseudocode for the follow hotel reservation class.
Reservations
Class Reservation {
MasterList master;
List
Int roomPrice; (gets from roomList ArrayList)
Int numOfGuests;
Date stayStart, stayEnd; (use DateFormatter to format into mm/dd/yyyy)
Getters and setters
Private void addRoom(Room room){
Master.checkDirty(room);
Master.checkCapacity(room);
If these two values are true, then the room can be added. If not, an error is thrown.
roomList.add(room);
}
}
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started