Write a menu-driven program to create a dictionary called HOTEL and provide the following functions:
a) ADD
nrooms to the dictionaryHOTEL, where each room description is stored asEnsure the ROOM_TYPE =>Standard(default), Deluxe, Supreme or SuiteBILL→ calculated based on room type and number of daysRoom Type Cost per Day (₹) Standard 1500 Deluxe 2500 Supreme 3500 Suite 5000
b) SEARCH for a room using its
ROOM_Nand increase the stay by 1 day.
The BILL should be recalculated accordingly. Display ROOM NOT FOUND in case not foundc) DISPLAY all room records in a tabular form showing:
- Also display the total bill amount collected.
No comments:
Post a Comment