Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

python only use function for pound to kg conversion def pounds_to_kg(pounds): kg = pounds/2.2046 return kg the rest don't use function plz - the total

image text in transcribedimage text in transcribedimage text in transcribed

python

only use function for pound to kg conversion

def pounds_to_kg(pounds):

kg = pounds/2.2046

return kg

the rest don't use function plz

- the total number of pounds of coffee C she has on hand. - the price per kg for coffee A. - the price per kg for coffee B. - the price per kg for coffee C. The calculator should calculate and output: - the total money she could make if she sold all of coffee A (notice the total amount is in pounds but the price is per kilogram). - the total money she could make if she sold all of coffee B (notice the total amount is in pounds but the price is per kilogram). - the total money she could make if she sold all of coffee C (notice the total amount is in pounds but the price is per kilogram). - the total money she could make if she sold all of the coffee on hand. Mael decided to make three different special coffee blends for Valentine's day. She will like the calculator to determine how much to charge for all three blends for specific number of orders plus tax (tax is added at the very end); she will also like the calculator to determine how much kg of each coffee to use for the orders and how many packages of cups to use including any additional cups needed. Here is the data needed for these calculations: - Red Velvet Mocha uses 2lbs of coffee A and 1lb of coffee B for a single order - Valentine's Day Frapp uses 2.5lbs of coffee B and 1.5lbs of coffee C for a single order - Lover's Spice uses .45 lbs of coffee A and 2.16lbs of coffee C for a single order - Each package of cups has 50 cups - Tax is 10% Mael will input the total number of orders requested. For the number of orders inputted, Mael will like the calculator to calculate and output what to charge for all three special blends plus tax, output how many total kg of each coffee she will need, and how many packages of cups and additional cups to use. storing answers as needed in variables and calling the provided pounds_to_kg function needed. 1. Greet the user with the message, "Welcome to Mael's Calculator" 2. Ask the user: "Total Coffee A Pounds: " 3. Ask the user: "Total Coffee B Pounds: " 4. Ask the user: "Total Coffee C Pounds:" 5. Ask the user: "Coffee A Price/Kg: " 6. Ask the user: "Coffee B Price/Kg: " 7. Ask the user: "Coffee C Price/Kg: " 8. Compute and output total made if all of coffee A is sold 9. Compute and output total made if all of coffee B is sold 10.Compute and output total made if all of coffee C is sold 11.Compute and output total made if all of the coffee is sold 12.Output the message, "***Valentine's Day Special "1 13.Ask the user: "Enter total orders: " 14.Compute and output charge for Red Velvet Mocha (with tax) 15. Compute and output amount of coffee A and B needed (in kg ) to make the order 16.Compute and output charge for Valentine's Day Frapp (with tax) 17. Compute and output amount of coffee B and C needed (in kg ) to make the order 18.Compute and output charge for Lover's Spice (with tax) 19. Compute and output amount of coffee A and C needed (in kg ) to make the order 20. Compute and output how many packages of cups and any additional cups are needed to meet the order. Example Code Runs

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 Administrator Make A Difference

Authors: Mohciine Elmourabit

1st Edition

B0CGM7XG75, 978-1722657802

More Books

Students also viewed these Databases questions

Question

Explain the pages in white the expert taxes

Answered: 1 week ago