This is for a c++ class Write a program that will be used as an app to help users compute the tax and tip on a restaurant bill. The program should first ask the user to enter the charge for the meal....


This is for a c++ class<br>Write a program that will be used as an app to help users compute the tax and tip on a restaurant bill. The<br>program should first ask the user to enter the charge for the meal. The program should then prompt the user<br>whether the meal is in-restaurant

Extracted text: This is for a c++ class Write a program that will be used as an app to help users compute the tax and tip on a restaurant bill. The program should first ask the user to enter the charge for the meal. The program should then prompt the user whether the meal is in-restaurant "restaurant" or whether it will be carry-out "carry-out." If a meal is in- restaurant, it is taxable and should be taxed. The California tax rate is 7.25 percent so you will need to add that much of the meal charge if the meal is in-restaurant. The program should then prompt the user on whether the service was excellent ("Excellent"), good ("Good"), or typical("Typical"). The tip should be then be 30 percent, if service was excellent, 20% if it was good, or 15% if it was typical. Note that the tip is computed based on the subtotal (before tax if applicable). Display the meal charge, the type of order (in-restaurant or carry-out), tax amount if applicable, tip amount, and total bill on the screen. Example input: "restaurant" and "Good" Example output: In-Restaurant Meal Subtotal: $38.55 Tax: $2.79 Tip: S7.71 Total: $49.05

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here