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).

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter5: Control Structures Ii (repetition)
Section: Chapter Questions
Problem 20PE: When you borrow money to buy a house, a car, or for some other purpose, you repay the loan by making...
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
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,