/* Check Please (10 points) Write a complete C program that prints a receipt at a restaurant. The program must ask waiter to enter the amount (in $) and then calculate the sales tax (assuming a tax rate of 7%). The program must then print a receipt similar to the one shown below and suggest three possible tips based on the amount before tax (15%, 20%, 25%). SAMPLE RUN: Enter amount: 45 Amount $45.00 Tax $ 3.15 Tip ______ ______________ TOTAL ______ 15% tip = $ 6.75 20% tip = $ 9.00 25% tip = $11.25 */ #include #include #include #define TAX_RATE 0.07 // 7% tax int main() { float amount; printf("Enter amount: "); scanf("%f", &amount); float tax = amount * TAX_RATE; float tip15 = amount*0.15; float tip20 = amount*0.20; float tip25 = amount*0.25; printf("\n"); printf(" Amount $%5.2f\n", amount); printf(" Tax $%5.2f\n", tax); printf(" Tip ______\n"); printf(" ______________\n"); printf(" TOTAL ______\n\n\n"); printf(" 15%% tip = $%5.2f\n", tip15); printf(" 20%% tip = $%5.2f\n", tip20); printf(" 25%% tip = $%5.2f\n", tip25); system("pause"); }