Question
Coding in Python. An event planner estimates that the cost per plate at a banquet will be $12.50 and only 75% of invited guests will
Coding in Python. An event planner estimates that the cost per plate at a banquet will be $12.50 and only 75% of invited guests will attend. Ask the user how many guests are invited, then calculate how many people are estimated to attend and the cost of the meal. Define and use the main function and write another function that will print the number of people invited the number of people expected to attend, and the cost of the meal based on expected attendance. Format the numbers to be easily readable (dollar signs, commas, two decimals for money, zero decimals for attendees). The expected number of guests should be an integer, rounded up from any decimal amount since you cant have a partial guest.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started