Computers and Technology
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)

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 17:00, carealee
How should you set the ohms adjust control on a multitester of analog vom, for resistance measurements?
Answers: 1
image
Computers and Technology, 23.06.2019 07:00, schvox
1. you have a small business that is divided into 3 departments: accounting, sales, and administration. these departments have the following number of devices (computers, printers, etc.): accounting-31, sales-28, and administration-13. using a class c private network, subnet the network so that each department will have their own subnet. you must show/explain how you arrived at your conclusion and also show the following: all available device addresses for each department, the broadcast address for each department, and the network address for each department. also, determine how many "wasted" (not usable) addresses resulted from your subnetting (enumerate them).
Answers: 3
image
Computers and Technology, 23.06.2019 16:30, mirmir62
Which of the following is not an enhancement to the standard wiki to make it more attractive for corporations? encryptionwork spacespermission toolspredictive text
Answers: 2
image
Computers and Technology, 23.06.2019 16:30, isaiahhuettnerowgg8d
What is one reason why indoor air pollution has become an increasing problem.
Answers: 1
Do you know the correct answer?
14 The area of a circle is calculated using the formula ni x 12 where it is equal to 3.142 and r is...

Questions in other subjects:

Konu
Mathematics, 24.02.2020 23:23