Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Jerry Feingold wants a program that will help him calculate the amount to tip a waiter at a restaurant. The program should subtract any liquor
Jerry Feingold wants a program that will help him calculate the amount to tip a waiter at a restaurant. The program should subtract any liquor charge from the total bill and then calculate the tip (using a percentage) on the remainder. Finally, the program should display the tip on the screen. Desk-check your solution's algorithm using $85 as the total bill, $20 as the liquor charge, and 20% as the tip percentage. Then desk-check it using $35 as the total bill, $0 as the liquor charge, and 15% as the tip percentage. (See Appendix B for the answer.) Modify the answer to Exercise 1 as follows. Jerry will be charging the total bill, including the tip, to his credit card. Modify the solution so that, in addition to calculating and displaying the appropriate tip, it also calculates and displays the amount charged to Jerry's credit card. Desk-check the algorithm using $50 as the total bill, $5 as the liquor charge, and 20% as the tip percentage. Then desk-check it using $15 as the total bill, $0 as the liquor charge, and 15% as the tip percentage
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started