Computers and Technology, 05.03.2021 16:40 swilks
14
The area of a circle is calculated using the formula ni x 12 where it is equal to 3.142 and r is the
radius.
A program is written to allow a user to enter the radius of a circle as a whole number between
1 and 30, then calculate and output the area of the circle.
01 radius = 0
02 area = 0.0
03 radius = input("Enter radius")
04 if radius <1 OR radius > 30 then
05 print("Sorry, that radius is invalid")
06 else
07 area = 3.142* (radius ^2)
08 print (area
09 endir
(a) Explain, using examples from the program, two ways to improve the maintainability of the
program. De
(4 Points)
Answers: 3
Computers and Technology, 24.06.2019 00:30
Which boolean operator enables you to exclude a search term? a} not b} and c} or d} plus
Answers: 1
Computers and Technology, 24.06.2019 07:00
You are most likely to automatically encode information about
Answers: 1
Computers and Technology, 24.06.2019 17:40
The value of sin(x) (in radians) can be approximated by the alternating infinite series create a function (prob3_2) that takes inputs of a scalar angle measure (in radians) and the number of approximation terms, n, and estimates sin(x). do not use the sin function in your solution. you may use the factorial function. though this can be done without a loop (more efficiently), your program must use (at least) one. you may find the mod() function useful in solving the problem.
Answers: 1
14
The area of a circle is calculated using the formula ni x 12 where it is equal to 3.142 and r is...
Mathematics, 05.11.2020 18:50
History, 05.11.2020 18:50
Computers and Technology, 05.11.2020 18:50
Chemistry, 05.11.2020 18:50
Spanish, 05.11.2020 18:50
History, 05.11.2020 18:50
Mathematics, 05.11.2020 18:50