Using Java programming language write a program to manage a hotel with 24 rooms; 10 rooms are Executive, with price Gh ₵ 2500.00 per night, 7 rooms are Chalets, with amounts Gh ₵ 1500.00 per night 7 rooms are Ordinary, with amount Gh ₵ 500.00 per night The program should allow customers to book for rooms for a number of nights, and update the number of empty rooms available for each category when a customer has paid fully and has checked-in; also update the number of empty rooms available when customer checks-out. Customers should make bookings with their first names, telephone number A customer should be prompted to know if a room is booked (meaning a another customer has booked it but has not paid fully, or has not checked-in) A customer should be prompted to know if a room is occupied (meaning a booked room has been fully paid for, or the customer has checked-in) A customer should be prompted to know if a room is available (meaning a room has neither been booked nor checked-in). A customer should be able to know if an available room from any of the three categories is disability friendly (please note; disability friendly rooms are 10% less the amount for each category). A customer should be able to know if there are no available rooms in a particular category Only available rooms can be booked, and only booked rooms can be checked-in, and only checked-in rooms can be checked-out. A customer should know the total amount to pay per the number of nights booked for. When a customer cancels a booking, the number of available rooms for the particular category should be updated. The hotel manager should be able to print a receipt with the customer registered details, including the amount paid, room number and category of room, and whether it is disability friendly or not (choose any form of room numbering for each of the categories, but each category should have different numbering system).

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

 

 
 
Question

Using Java programming language write a program to manage a hotel with 24 rooms;
10 rooms are Executive, with price Gh ₵ 2500.00 per night,
7 rooms are Chalets, with amounts Gh ₵ 1500.00 per night
7 rooms are Ordinary, with amount Gh ₵ 500.00 per night

The program should allow customers to book for rooms for a number of nights, and update the number of empty rooms available for each category when a customer has paid fully and has checked-in; also update the number of empty rooms available when customer checks-out.
Customers should make bookings with their first names, telephone number

A customer should be prompted to know if a room is booked (meaning a another customer has booked it but has not paid fully, or has not checked-in)

A customer should be prompted to know if a room is occupied (meaning a booked room has been fully paid for, or the customer has checked-in)

A customer should be prompted to know if a room is available (meaning a room has neither been booked nor checked-in).

A customer should be able to know if an available room from any of the three categories is disability friendly (please note; disability friendly rooms are 10% less the amount for each category).

A customer should be able to know if there are no available rooms in a particular category
Only available rooms can be booked, and only booked rooms can be checked-in, and only checked-in rooms can be checked-out.

A customer should know the total amount to pay per the number of nights booked for.
When a customer cancels a booking, the number of available rooms for the particular category should be updated.

The hotel manager should be able to print a receipt with the customer registered details, including the amount paid, room number and category of room, and whether it is disability friendly or not (choose any form of room numbering for each of the categories, but each category should have different numbering system).

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Function Arguments
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education