Answered step by step
Verified Expert Solution
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 squareshaped flower bed. Write a function sizeflowerbed 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: intx Example usage: Hang decorative banners along the perimeter of the backyard. Write a function howmanybanners 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
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