Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Bake Function Name: bake() Parameters: N/A Returns: None Description: To make some extra money this semester, you decide to start a baking service. You can

image text in transcribed
Bake Function Name: bake() Parameters: N/A Returns: None Description: To make some extra money this semester, you decide to start a baking service. You can make cakes in 100 minutes, cupcakes in 70 minutes, and cookies in 45 minutes. Write a function that asks the user how many cakes, cupcakes, and cookies they want you to make that day. Print a response with how much time it will take to make their order in hours and minutes. You may assume all inputs will be integers. >>> bake) How many cakes do you want? 2 How many cupcakes do you want? 5 How many cookies do you want? 4 It will take 12 hours and 10 minutes to make 2 cakes, 5 cupcakes, and 4 cookies. >>> bake() How many cakes do you want? 1 How many cupcakes do you want? 3 How many cookies do you want? 12 It will take 14 hours and 10 minutes to make 1 cakes, 3 cupcakes, and 12 cookies. Cake Volume Function Name: cakeVolume() Parameters: N/A Returns: None Description: Your customers often request cakes of different sizes, so you calculate the vol- ume of each cake you make. Write a function that asks the user what the radius and height of the cake is, and then calculate the volume of the cake with the given dimensions. Print the volume of the cake. The inputs can be floats. Round your answer to two decimal points. Note: Use 3.14 as the value for pl. Note: The volume of a cylinder is v = (pl) (-2)(h), where ris radius and his height >>> cakevolume) What is the radius of the cake? 3 What is the height of the cake? 4 The volume of the cake is 113.04

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

Learn To Program Databases With Visual Basic 6

Authors: John Smiley

1st Edition

1902745035, 978-1902745039

More Books

Students also viewed these Databases questions

Question

Describe the different types of testamentary gifts.

Answered: 1 week ago