Question: Can you please program this in python. DIRECTIONS you are all friends, it is okay to split the costs evenly. Your program should take as

 Can you please program this in python. DIRECTIONS you are all

Can you please program this in python.

DIRECTIONS you are all friends, it is okay to split the costs evenly. Your program should take as input: bill(without tax or tip) as a foating point number 2. The sales tax rate as a floating point number (for example: an 8% tax rate would be 0.08) 3. The level of service as an integer between 0 and 10 o is terrible (0% tip), 5 is average (1 5% tip), and 1 o is excellent (30% tip) 4. The number of friends to split the check among Your program should output: 1. The amount each friend should pay toward the bill (with tax) The amount each friend should leave in tip tip should be calculated on the pre-tax restaurant bill 3. The total amount each diner should pay, including restaurant bill, sales tax, and tip 4. The overall total which includes the restaurant bill, the sales tax, and the tip For example, with the following inputs: Resaurant bill (without ax ox ip): $a5 sale -x rate: 0.08 Level o service: 7 umber of friend: 3 the output should be Bill (with tax) per person: $12.6 Tip per person: S2.4499999999999997 Total per person: 15.049999999999999 Total bill including tax and tip: $45.15 Note that because floating point values often incur rounding errors, the output might not be completely accurate. This will not affect the grading. However, please make your input and output look like the example above, so that the automated system can evaluate your results

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!