Write a program that computes the tax and tip on a restaurant bill for a patron with a $44.50 meal charge. The tax should be 6.75 percent of the meal cost. The tip should be 15 percent of the total after adding the tax. Display the meal cost, tax amount, tip amount, and total bill on the screen. Use the template, Program1-Template.cpp, to complete this programming assignment. Download the attached file, Program1-template.cpp, from Blackboard and rename it as Program1.cpp. Any line that starts with the characters "//" is a comment in C++ and the compiler ignores it. Remove the angle brackets "<" and ">" in any line that starts with "//" and replace it with the appropriate information.
Write a program that computes the tax and tip on a restaurant bill for a patron with a
$44.50 meal charge. The tax should be 6.75 percent of the meal cost. The tip should be
15 percent of the total after adding the tax. Display the meal cost, tax amount, tip amount,
and total bill on the screen. Use the template, Program1-Template.cpp, to complete this
programming assignment.
Download the attached file, Program1-template.cpp, from Blackboard and rename it as
Program1.cpp. Any line that starts with the characters "//" is a comment in C++ and the
compiler ignores it. Remove the angle brackets "<" and ">" in any line that starts with "//"
and replace it with the appropriate information.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 4 images