Question: 6 . 7 . 2 : Functions with branches / loops . 5 6 8 8 4 4 . 4 2 2 8 2 7

6.7.2: Functions with branches/loops.
568844.4228274.qx3zqy7
Define a function find_price() that takes one parameter as the number of people attending a dinner, and returns the menu's price.
The menu's price is returned as follows:
If the number of people is at least 575, then the menu price is $45.
If the number of people is at least 275 and less than 575, then the menu price is $61.
Otherwise, the menu price is $73.
Click here for examples
 6.7.2: Functions with branches/loops. 568844.4228274.qx3zqy7 Define a function find_price() that takes

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!