Question: Write a split _ check function that returns the amount that each diner must pay to cover the cost of the meal. The function has
Write a splitcheck function that returns the amount that each diner must pay to cover the cost of the meal.
The function has four parameters:
bill: The amount of the bill.
people: The number of diners to split the bill between.
taxpercentage: The extra tax percentage to add to the bill.
tippercentage: The extra tip percentage to add to the bill.
The tax or tip percentages are optional and may not be given when calling splitcheck. Use default parameter values of for tippercentage, and for taxpercentage. Assume that the tip is calculated from the amount of the bill before tax.
Sample output with inputs:
Cost per diner: $
Sample output with inputs:
Cost per diner: $
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
