subject

Your program in python must produce the correct results for valid inputs. However, it is not expected to handle
invalid inputs (such as negative values). Thus, it is unnecessary to use selective or repetitive control
statements (ifs and loops) in your program.
The formula for the area A of a circle is A = arwhere r denotes the radius. For this calculation, you will
use the value of it provided in the Python math module. After importing the math module, the name
math. pi represents a close approximation to the value of a.
To estimate the number of plants needed for a flowerbed, divide the area of the flowerbed by the area
needed per plant (the square of the recommended distance between plants) and then truncate this result.
To truncate a value of type float, convert it to a value of type int (using the int function).
The program named example. py that is attached contains example usages of many of the Python
features you will use in this project (with explanations in the comments)


Your program in python

must produce the correct results for valid inputs. However, it is not expe

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 07:20
Write a pseudocode solution for each of these problems. 1. design a while loop that lets that user enter a number. the number should be multiplied by 10, and the result stored in a variable named product. the loop should iterate as long as product contains a value less than 100. 2. design a do-while loop that asks the user to enter two numbers. the numbers should be added and the sum displayed. the loop should ask the user whether he or she wishes to perform the operation again. if so, the loop should repeat; otherwise it should terminate. 3. design a for loop that displays the following set of numbers: 0, 10, 20, 30, 40, 50 100. 4. design a nested loop that displays 10 rows of # characters. there should be 15 # characters in each row. 5. convert this for loop to a while loop. declare integer count for count = 1 to 50 display count end for 6. find the error in the following pseudocode. declare boolean finished = false declare integer value, cube while not finished display “enter a value to be cubed.” input value; set cube = value ^ 3 display value, “ cubed is “, cube end while
Answers: 2
question
Computers and Technology, 23.06.2019 03:00
State 7 common key's for every keyboard
Answers: 1
question
Computers and Technology, 23.06.2019 10:30
Would a ps4 wired controller work on an xbox one
Answers: 1
question
Computers and Technology, 23.06.2019 16:00
Helen is having a meeting with her colleagues in her company. they are working on the goals and objectives for the coming year. they want to ensure that these goals and objectives of the processes involved are properly evaluated. which system can helen and her colleagues apply to evaluate this? helen and her colleagues require a blank to evaluate the goals and objectives.
Answers: 2
You know the right answer?
Your program in python must produce the correct results for valid inputs. However, it is not expect...
Questions
question
Mathematics, 17.01.2021 21:40
question
Mathematics, 17.01.2021 21:40
question
Mathematics, 17.01.2021 21:40
question
Mathematics, 17.01.2021 21:40