Question: 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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!