Question: Using Python Programming: (13 Points) A party planner is organizing a party. Write a program CostEstimate.py that performs the following, 2. Rental cost is $100.
(13 Points) A party planner is organizing a party. Write a program CostEstimate.py that performs the following, 2. Rental cost is $100. Food cost is as follows: For groups with 1-5 people, cost is $20 per person For groups with 6-10 people, cost is $18 per person For groups with 11-15 people cost is $16 per person For groups with more than 15 people, cost is $15 per person. Define a function called cost which takes one parameters, the number of people in the party, calculates the per person price (food cost with rental cost), then returns the cost per person. Call cost function in the program to produce a cost estimate table that shows the party size from 2, 4, up to 20 people. Sample output: Party Size (#people) Cost Estimate Per Person 4 6 8 10 12 $70.00 $45.00 $34.67 $30.50 $28.00 24.33 20 $20.00
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
