(Programming Exercise 8 from Chapter 2 - Tip, Tax, and Total). Design a program written in pseudocode 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. PLs help me with this question it's due tomorrow!!!

Respuesta :

Certainly! Below is an example of pseudocode for this program.

```

1. Start

2. Display "Please enter the charge for the food: "

3. Input foodCharge

4. tipAmount = 0.15 * foodCharge

5. taxAmount = 0.07 * foodCharge

6. totalAmount = foodCharge + tipAmount + taxAmount

7. Display "Food Charge: ", foodCharge

8. Display "Tip Amount (15%): ", tipAmount

9. Display "Tax Amount (7%): ", taxAmount

10. Display "Total Amount: ", totalAmount

11. Stop

```

ACCESS MORE