Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

in python please Qu2 Write a program that computes the tax and tip on a restaurant bill. The program should ask the user to enter

in python please image text in transcribed
Qu2 Write a program that computes the tax and tip on a restaurant bill. The program should ask the user to enter (input) the name of the waiter and the charge for the meal. The tax should be 4.75 percent of the meal charge. The tip should be 10 percent of the total after adding the tax. Your code should display the walter name, meal charge, tax amount, tip amount, and total till on the screen, Here is a sample output input: Enter Walter name: Alex Enter charge for meal: 51,00 output: Walter Name: Alex Meal Charge: $ 51.00 Tax: $ 2.42 Tip: $ 5.10 Total Bil: $ 58.52 Important Notes: 1. Use a right function to get inputs from the user 2. Make sure to keep variables in a correct type le. int, float str) 3. Use meaningful names for your variables 4. Use correct operations to compute new variables 5. Make sure you display the output values with 2 decimal places 6. Make sure you display the $ in output values

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

Step: 3

blur-text-image

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

JDBC Database Programming With J2ee

Authors: Art Taylor

1st Edition

0130453234, 978-0130453235

More Books

Students also viewed these Databases questions

Question

1. Does the survey prompt discussions with your direct reports?

Answered: 1 week ago