Question: Write C++ program to computes the tax, tip and total charge for a given restaurant bill. The tax rate is at 10.5% and tip is

Write C++ program to computes the tax, tip and total charge for a given restaurant bill.

The tax rate is at 10.5% and tip is 20% of total after adding tax amount to the initial restaurant bill. These tax rates value should be stored in global constant defined outside the main function. Remember that convention for naming constants using capitalized letters. You must use the above input value for bill when testing your work for submission.

Note: The $ sign is simply printed as a literal. In addition, you should display result to 2 decimal places to represent cents in a dollar.

Also, style of program is very important here.

You must document your work. You must indent code properly. You must also name your variables with descriptive names. You must space out work for clarity. Use proper indentation.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!