Question: Note: For this lab, first we need to define 3 functions: roomCost, mealCost, and excursionCost, then we call these 3 functions separately to calculate cost

Note:
For this lab, first we need to define 3 functions: roomCost, mealCost, and excursionCost, then we call these 3 functions separately to calculate cost for room, meal, and excursion, finally Totalcost is calculated.
Here are some sample code:
# Define mealcost function
def mealcost(brunch, dinner):
sub = brunch **25+ dinner **75
grat = sub **0.15
return sub + grat
# Call mealCost function
brunch_count = int(input("How many Brunches: ")).
dinner_count = int(input("How many Dinners: "))
mc= mealCost brunch_count, dinner_count)
 Note: For this lab, first we need to define 3 functions:

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!