Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Set a large enough square - shaped flower bed. Write a function size _ flower _ bed ( ) that inputs the number of flowers

Set a large enough square-shaped flower bed. Write a function size_flower_bed() that inputs the number of flowers that should be in the flower bed, as a minimum, and prints the minimum number of flowers that should be on each side. Since the sides of the flower bed are all equal, a single number will be printed. All numbers of flowers should be integers: there are no fractional flowers in the flower bed! Hint: to truncate a number x up instead of down, use this formula: int((x //1)) Example usage: 4. Hang decorative banners along the perimeter of the backyard. Write a function how_many_banners(). The function inputs the length of each banner and the perimeter of the area where to hang the banners. Calculate how many banners you will need, as a minimum, so they will touch each other. The length and perimeter should be floats but the minimum number of banners should be an integer. Hint: the integer division operations // and % work for floats just like for integers

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_2

Step: 3

blur-text-image_3

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

Concepts of Database Management

Authors: Philip J. Pratt, Mary Z. Last

8th edition

1285427106, 978-1285427102

More Books

Students also viewed these Databases questions

Question

Have you ever told a lie that you regretted?

Answered: 1 week ago