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

The objective of this lab project is to familiarize yourself with writing larger programs and using selection. In this project, you are required to create a program that computes and prints a statement of charges for customers at the PCCC Palace Hotel.

To solve this problem, you need to gather the necessary input from the user, which includes the customer's name, room number, and the number of days they stayed in the hotel. Additionally, you need to prompt the user for responses regarding their internet usage and TV usage.

Based on the room number provided by the user, you can determine the type of room the customer stayed in. Rooms with numbers ending between 00-19 are Single Rooms, between 20-39 are Family Rooms, and between 40-50 are Suites.

Next, you need to calculate the charges for each day of the customer's stay based on the room type. The room rates for Single Rooms, Family Rooms, and Suites are $149.50, $199.00, and $249.00 respectively.

Additionally, you need to consider the charges for internet access and TV usage. If the customer used the internet, you should prompt them to choose between WiFi (option 1) or Cable (option 2). The internet access rates are $7.99 for WiFi and $4.99 for Cable.

For TV usage, prompt the customer to indicate whether they used the TV (Y/N). If they did, provide them with the options for TV access. Cable Channels cost $7.99 and Basic channels cost $1.95.

Based on the user's input, you can calculate the total charges for the customer and display a statement of charges with all the details, including the customer's name, room number, number of days stayed, room type, internet access charges, and TV charges.

Remember to handle the different possible input variations for the user's choices, such as allowing them to enter either 1, W, w for WiFi, and 2, C, c for Cable.

By following this approach, you should be able to create a program that computes and prints the statement of charges for customers at the PCCC Palace Hotel.