1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
murzikaleks [220]
3 years ago
12

Write a function called circle that takes a scalar input r. it needs to return an output called area that is the area of a circl

e with radius r and a second output, cf that is the circumference of the same circle. you are allowed to use the built-in function pi. in fact, you need to use it to get the value of π as accurately as possible.
Mathematics
1 answer:
Aliun [14]3 years ago
8 0
Ok so I'll demonstrate in programming language python.

import math
def circle():
r = float(input("Enter r: "))
a = math.pi * r ** 2
print("Area of circle with r = {0} is {1
}cm2".format(str(r), str(a))

circle()
You might be interested in
Suppose that there are 15 antennas in a store, of which 3 are defective. Assume all the defectives and all the functional antenn
ohaa [14]

Answer:

Step-by-step explanation:

Total number of antenna is 15

Defective antenna is 3

The functional antenna is 15-3=12.

Now, if no two defectives are to be consecutive, then the spaces between the functional antennas must each contain at most one defective antenna.

So,

We line up the 13 good ones, and see where the bad one will fits in

__G __ G __ G __ G __ G __G __ G __ G __ G __ G __ G __ G __G __

Each of the places where there's a line is an available spot for one (and no more than one!) bad antenna.

Then,

There are 14 spot available for the defective and there are 3 defective, so the arrange will be combinational arrangement

ⁿCr= n!/(n-r)!r!

The number of arrangement is

14C3=14!/(14-3)!3!

14C3=14×13×12×11!/11!×3×2

14C3=14×13×12/6

14C3=364ways

7 0
3 years ago
Okay so, “Lynn multiplied a number by 8, and then subtracted 35 from the product. The result was 21. Write an equation to find t
Serhud [2]

............................................................................

7 0
3 years ago
You drive 4 miles from your house to your friend's house. Your house is at an elevation of 622 feet. Your friend's house is at a
ANEK [815]
Just subtract 622 feet from 486 feet to get the change in elevation.  The result will be negative because your friend's house is at a lower elevation than yours.

Now find the mean change in elevation per mile by dividing (486 ft - 622 ft) by 4 miles:
                      -136 ft
                    -----------  = -34 ft/mile
                       4 mi
8 0
3 years ago
If the volume of a cube is 125 cubic feet, what will happen to the volume if each side is increased by 5 feet?
lord [1]
The answer is D hope it helps.

7 0
3 years ago
Read 2 more answers
Could you make a 3D design using at least seven different laterals?
DiKsa [7]

Yes. Because blah blah  blas blah blah blah

XD

4 0
4 years ago
Other questions:
  • The formula for finding the volume of a cone is V = 1/3πr2h. The volume of a cone is 300 cm3 and the height of the cone is 10 cm
    10·2 answers
  • What is the value of f in the equation f+1/6=3/7
    15·2 answers
  • Find the mode of the data 6,8,3,6,3,7,4,6,7,3,6.​
    15·1 answer
  • PLZ ANSWER <br> I WILL MARK
    7·2 answers
  • Is (-5, 25, -125, 625,...) geometric?
    12·2 answers
  • The functions u and w are defined as follows. =ux+−2x2 =wx−−x21 Find the value of wu−5.
    7·1 answer
  • C) Make k the subject of the formula t = ak/ 20
    7·1 answer
  • How can help me on this <br><br><br> the blank one if the one I need help one btw
    7·2 answers
  • QUICK PLEASE HELP ME ANSWER THESE QUESTIONS AND SHOW WORK!!!<br> I WILL MARK BRAINLIEST!!!
    14·2 answers
  • Select all of the ratios that are equivalent to 6:16.
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!