Question: 5. (a) (15 points] Write an algorithm in pseudocode for a restaurant to compute the tip, tax and total bill amount on the meal cost
![5. (a) (15 points] Write an algorithm in pseudocode for a](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f3b6baa5301_05866f3b6ba175b2.jpg)
5. (a) (15 points] Write an algorithm in pseudocode for a restaurant to compute the tip, tax and total bill amount on the meal cost of a customer. The pseudocode asks the user to enter the meal cost and then calculates the tip, tax and the total bill amount. The tax should be 7.85% of the meal coast, and the tip should be 10% of the total after adding the tax to the meal cost. The pseudocode displays the meal cost, tax amount, tip amount, and the total bill on the screen. b. (25 points) Develop the C++ program of the algorithm developed in 5. (a). The name of the submitted program must be restaurantBill.cpp. Some Programming Hints: 1. Use cout to display the result or output on the screen. 2. Use cin to get the input from the user. 3. The tax and tip will be constants for the program. Use const double for tax and tip. 4. The variables for tax amount, tip amount and total bill amount should be double. 5. The tax amount can be calculated by multiplying (*) the meal cost and the tax. 6. The tip amount can be calculated by multiplying (*) the tip and the subtotal after adding the tax to the meal cost. Sample Run Enter the cost of the meal: 120.00 Bill Information: Meal Cost: $120.00 Tax: $9.42 Tip: $12.942 Total: $142.362
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
