Project #3
One Night Reservations
(Due 3 March 06)
A new hotel reservation system is being set up to accommodate customers who make exclusively reservations for one night. The system is being automated to ask the customer a series of questions which can be answered with a single word or a single letter. From the answers to the questions, the system determines the room price (including tax) and displays this information to the customer. The system then asks the customer if another reservation is to be made. It the customer answers in the affirmative, the system asks the questions again and displays the second room price. When the customer is finished, the system must display the total price of everything, including tax. The following list indicates the options the system must provide for the customer;
Suppose the customer makes a request for a room with a King-size bed, no extra bed, for Jun 15 to be occupied by a federal employee. The system should display something like
Peak Government rate for a King is $115.81 + Tax of $10.89
While a request for a regular customer who is a AAA member and wants a room with a King-size bed and an extra bed for May 10 might see
AAA/CAA/AARP rate for a Double with extra bed is $104.00 + Tax of $9.78
If these two requests are made by the same person and no other requests are made, the program should display the total cost for all reservations, including tax, as
The total cost of all reservations (including tax) is $240.47
Hand in a Visual Studio generated printout
of your well documented program and a printout of the output generated
for a customer who makes the orders that I will specify two days before
the project is due. Copy your source file (which should be named
after yourself) to the appropriate hand-in folder on the P: drive.
Note: The numbers do not quite add
up. 115.81 + 10.89 + 104.00 + 9.78 add up to 240.48 not 240.47
What has happened is that in displaying the costs in dollars and cents,
one or more of the values has been rounded up for display purposes; but
when the actual values are added, one cent is lost. Don't worry about
this loss of one cent; the company isn't worried.