Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a complete C++ program that prints a hotel bill. The program shall prompt the user for some numerical values, read in those values, include

Create a complete C++ program that prints a hotel bill. The program shall prompt the user for some numerical values, read in those values, include those values when calculating results, and then print the bill on the screen. To produce the example bill, the user would enter the check-in date (the numbers 3, 14 and 2012), the room number (118), and the cost of the room (72.10). The program would then calculate the state tax, room tax, and balance due, and finally print the bill.

Example of text file:

Comfort Hotel

Longview, TX 75605

Check-in Date : 3/14/2012

------------------------------------------------------------------

Post Date Description Comment Amount

---------- ----------- ------- ------

3/14/2011 Room Charge # 118 72.10

3/14/2011 State Tax (7.75%) 5.59

3/14/2011 Room Tax (4.00%) 2.88

----------

Balance Due: 80.57

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David M. Kroenke, David J. Auer

7th edition

133544621, 133544626, 0-13-354462-1, 978-0133544626

More Books

Students also viewed these Databases questions