Question: Refer to the following function definition: def splitCheck ( amount = 1 0 , numPeople = 2 , taxPercentage = 0 . 0 9 5

Refer to the following function definition:
def splitCheck(amount=10, numPeople=2, taxPercentage=0.095, tipPercentage=0.18):
When entering answers, use the same number of significant digits as the default parameter values in the splitCheck() definition. Answer ERROR if an error occurs.
1)
What value is passed as the taxPercentage argument in the function call splitCheck(60.52,5,0.075, tipPercentage=0.18)?
Press again to show the answer.
2)
What value is passed as the numPeople argument in the function call splitCheck(taxPercentage=0.07,60.52,2, tipPercentage=0.18)?
3)
What will the parameter taxPercentage be assigned for the following call? splitCheck(amount=49.50, numPeople=3)
4)
Write a statement that splits a $50 check among four people. Use the default tax percentage and tip amount.
5)
Write a statement that splits a $25 check among three people and leaves a 25% tip. Use the default tax rate.

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 Programming Questions!