Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing

Authors: David M. Kroenke, David Auer

11th Edition

B003Y7CIBU, 978-0132302678

More Books

Students also viewed these Databases questions