Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Marketing Database Analytics

Authors: Andrew D. Banasiewicz

1st Edition

0415657881, 978-0415657884

More Books

Students also viewed these Databases questions

Question

Do agency funds have a net fund balance? Why or why not?

Answered: 1 week ago