Answer to Question #268051 in Algorithms for dede

Question #268051

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.


1
Expert's answer
2021-11-18T06:56:12-0500
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

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS