Write a program in Java, Python and Lisp When the program first launches, there is a menu which allows the user to select one of the following five options: 1.) Add a guest 2.) Add a room 3.) Add a booking 4.) View bookings 5.) Quit The functionality of these options is as follows: 1.) When users add a guest they provide a name which is stored in some manner of array or list. Guests are assigned a unique ID value where the first guest added is assigned the ID value 1, the second guest added is assigned the ID value 2 and so on. 2.) When users add a room they provide a room number and a room capacity (i.e. how many people can stay in the room at any one time) which is stored in some manner of array or list. Rooms have a property which indicates if they are booked or not for any given date – please see the Room Booking Dates section below for some guidance on the easiest way to implement this. 3.) When users add a booking they provide a guest ID, room number, the number of guests staying and finally a check-in date and check-out date. To successfully create a room booking: • The guest ID must be a guest which is registered on the system, • The room number must be of a room that exists, • The room must be able to accommodate the number of people in the booking (i.e. if the room capacity is for 2 people and the booking has 4 people staying then the booking must be refused), and finally • The room must be available on the dates requested. 4.) When users views bookings they have the option to: a. View guest bookings, or b. View room bookings. If the user opts to show guest bookings then they are prompted to enter the guest ID - and then any bookings made by that guest are displayed including: - The guest’s name, - Which room number they booked & number of guests staying, and - The check-in and check-out dates. If the user opts to show room bookings then they are prompted to enter a room number - and then any bookings for that room within the current year are displayed, including: - The guest’s name, - The number of guests staying, and - The check-in and check-out dates. 5.) When a user chooses to Quit the program terminates with a goodbye message.
Write a program in Java, Python and Lisp When the program first launches, there is a menu which allows the user to select one of the following five options: 1.) Add a guest 2.) Add a room 3.) Add a booking 4.) View bookings 5.) Quit The functionality of these options is as follows: 1.) When users add a guest they provide a name which is stored in some manner of array or list. Guests are assigned a unique ID value where the first guest added is assigned the ID value 1, the second guest added is assigned the ID value 2 and so on. 2.) When users add a room they provide a room number and a room capacity (i.e. how many people can stay in the room at any one time) which is stored in some manner of array or list. Rooms have a property which indicates if they are booked or not for any given date – please see the Room Booking Dates section below for some guidance on the easiest way to implement this. 3.) When users add a booking they provide a guest ID, room number, the number of guests staying and finally a check-in date and check-out date. To successfully create a room booking: • The guest ID must be a guest which is registered on the system, • The room number must be of a room that exists, • The room must be able to accommodate the number of people in the booking (i.e. if the room capacity is for 2 people and the booking has 4 people staying then the booking must be refused), and finally • The room must be available on the dates requested. 4.) When users views bookings they have the option to: a. View guest bookings, or b. View room bookings. If the user opts to show guest bookings then they are prompted to enter the guest ID - and then any bookings made by that guest are displayed including: - The guest’s name, - Which room number they booked & number of guests staying, and - The check-in and check-out dates. If the user opts to show room bookings then they are prompted to enter a room number - and then any bookings for that room within the current year are displayed, including: - The guest’s name, - The number of guests staying, and - The check-in and check-out dates. 5.) When a user chooses to Quit the program terminates with a goodbye message.
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
Write a program in Java, Python and Lisp
When the program first launches, there is a menu which allows the user to select one of the following five options:
1.) Add a guest
2.) Add a room
3.) Add a booking
4.) View bookings
5.) Quit
The functionality of these options is as follows:
1.) When users add a guest they provide a name which is stored in some manner of array or list. Guests are assigned a unique ID value where the first guest added is assigned the ID value 1, the second guest added is assigned the ID value 2 and so on.
2.) When users add a room they provide a room number and a room capacity (i.e. how many people can stay in the room at any one time) which is stored in some manner of array or list. Rooms have a property which indicates if they are booked or not for any given date – please see the Room Booking Dates section below for some guidance on the easiest way to implement this.
3.) When users add a booking they provide a guest ID, room number, the number of guests staying and finally a check-in date and check-out date. To successfully create a room booking:
• The guest ID must be a guest which is registered on the system,
• The room number must be of a room that exists,
• The room must be able to accommodate the number of people in the booking (i.e. if the room capacity is for 2 people and the booking has 4 people staying then the booking must be refused), and finally
• The room must be available on the dates requested.
4.) When users views bookings they have the option to: a. View guest bookings, or b. View room bookings. If the user opts to show guest bookings then they are prompted to enter the guest ID - and then any bookings made by that guest are displayed including: - The guest’s name, - Which room number they booked & number of guests staying, and - The check-in and check-out dates. If the user opts to show room bookings then they are prompted to enter a room number - and then any bookings for that room within the current year are displayed, including: - The guest’s name, - The number of guests staying, and - The check-in and check-out dates.
5.) When a user chooses to Quit the program terminates with a goodbye message.
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 4 steps with 1 images
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY