Question
The Days Out Motel wants you to write a program that will print a statement for each overnight customer. The sales tax rate is 5.5%.
The Days Out Motel wants you to write a program that will print a statement for each overnight customer. The sales tax rate is 5.5%. Use main( ) as the driver function. Allow the user to process as many customer bills as desired. The specifications of the program are below.
a. Write one function to prompt the user for the following customer information:
Date of the bill. Customers Name. Room Number. Room Rate. Number of Nights. Phone Charges.
b. Write one function to calculate the all charges necessary for the customers bill as displayed below.
c. Write one function to display the customers bill using the following information: the date, the Customers Name, Room Number, Room Rate, Number of Nights, Room Cost, Taxes, Subtotal, Phone Charge, and Total Charges. (Perform appropriate data validation where needed.)
Sample Input: Please enter the following Information.
Date: 10-5-17
Customer's Name: The Larry Hill Family
Room Number: 245
Room Rate: 39.95
Number of Nights: 3
Phone Charge: 5.75
Sample Output:
The Days Out Motel
Date: 10-5-17
Customer's Name: The Larry Hill Family
Room Number: 245
Room Rate $ 39.95
Number of Nights: 3
Room Cost: $ 119.85
Taxes $ 6.59
Subtotal: $ 126.44
Phone Charges: $ 5.75
TOTAL DUE: $ 132.19
Thank you for staying at the Days Out Motel. Drive safely and please come again.
Would you like to process another customers bill (Y or N): n
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started