Objective:
The purpose of this lab project is to exposes you to writing larger programs, and how to use selection.
Problem Specification:
The PCCC Palace Hotel needs a program to compute and prints a statement of charges for customers.
Your input to the program consists of:
the customer’s name, room number, and the number of days they stayed in the hotel.
A response to whether the internet was used (Y/N), and a response to whether TV was used (Y/N).
For the room, room number ending with:
00-19 is a Single Rooms.
20-39 is a Family Rooms
40-50 is a Suite.
Charges for each day are as follows:
Room Rates are:
Single room-One bed $149.50
Family room double bed $199.00
Suite $249.00
Internet Access rates are (if the customer accessed the Internet)
WiFi $7.99
Cable(wired) $4.99
Television Rates (if the customer used the TV)
Cable Channels $7.99
Basic channels $1.95
Internet access and TV access options are chosen from menus to handle each of the inputs
A sample input for the program would be:
The customer name please: Eddie
Room Number: 318
Number of Days in the Hotel: 3
Internet Used (Y/N): Y
Access Used
1 – Wi-Fi connection
2 - Cable
Enter Choice 1 or 2 : W (note that input may be 1, W, w, 2, C, or c)
TV Used (Y/N): Y
TV accessed