* 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...


Based on the image attached, fix the logic error.


*Help me with step-by-step solution. Thank you in advance.


* Tip, Tax, and Total<br>Design a program that calculates the total<br>amount of a meal purchased at a restaurant.<br>The program should ask the user to enter the<br>charge for the food, and then calculate the amount<br>of a 15 percent tip and 7 percent sales tax.<br>Display each of these amounts and the total.<br>step 1- IPO<br>step 2 - algorithm<br>step 3- coding<br>*/<br>//library for 1/0<br>#include<stdio.h><br>int main()//int - integer<br>{<br>//should ask the user to enter the<br>l/charge for the food<br>double pricefood=0;<br>double tip=0;<br>double tax=0;<br>printf(5) printf("murah"); } else printf("Mahal"); } return 0; } "/>
Extracted text: * 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. step 1- IPO step 2 - algorithm step 3- coding */ //library for 1/0 #include int main()//int - integer { //should ask the user to enter the l/charge for the food double pricefood=0; double tip=0; double tax=0; printf("Enter the price of the food: \n"); scanf("%d",&pricefood); printf("Price:%d\n", pricefood); if (pricefood >5) printf("murah"); } else printf("Mahal"); } return 0; }

Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here