PSEUDOCODE
Tip, Tax, and Total
Design a program that calculates the total amount of a meal purchased at a restaurant. The program should ask the user to enter the charge for the food, and then calculate the amount of a 15 percent tip and 7 percent sales tax. Display each of these amounts and the total.
Start
Declare variables charge,tip, salesTax,totalAmount
Display "Enter the charge for the food: "
Read charge
Set tip=charge*0.15
Set salesTax=charge*0.07
Set totalAmount=charge+tip+salesTax
Display "Tip (15%): "+tip
Display "Sales tax (7%): "+salesTax
Display "Total amount of a meal purchased at a restaurant: "+totalAmount
Stop
Comments
Leave a comment