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
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