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
Write an equation to represent the following: Three consecutive integers add up to 11 more than the smallest.
mr Goodwill [35]

Answer:


Step-by-step explanation:

First we have to assume the smallest integer.

Let,

the smallest integer is  x

So, the other two integers are-

x+1  and   x+2

Now,  

the sum of these 3 integers is greater than smallest integer by  11

So, we get

x+(x+1)+(x+2) =x+11

This is the required equation.

5 0
3 years ago
1. John’s age is three times that of his sister. When you add John’s age to his sister's age, you get 36. How old are John and h
iren [92.7K]

Answer:

sister = 6 years

John=18 years

Step-by-step explanation:

A(S) + 12 = 3 * A(S), subtracting A(S) from both sides one gets 12 = 2 * A(S). Now dividing both sides by 2 we get A(S) = 12/2 = 6 . Therefore, the age of the sister is 6 years when her brother John is three times as old, that is 18 years.

6 0
3 years ago
Read 2 more answers
a veterinarian needs to know animals weight in kilograms. if 20 pounds is about 9 kilograms and a dog weights 30 pounds, use a r
ahrayia [7]

For this case we have the following conversion:

20 pounds = 9 kilograms

To use the table what we must do is find another relationship that allows us to find the weight in kilograms for 30 pounds.

For example, half the weight in pounds is half the weight in kilograms.

Therefore, the given conversion is:

10 pounds = 4.5 kilograms

So, for 30 pounds, we multiply this last ratio obtained by three on both sides:

30 pounds = 13.5 kilograms

Then, the table is:

Pounds 10 20 30

kilograms 4.5 9 13.5

Answer:

Using the ratio table the dogs weight is:

30 pounds = 13.5 kilograms

3 0
3 years ago
Read 2 more answers
Y=|x+2|-1<br><br> Y&lt;0<br><br> Please help ASAP!
Montano1993 [528]

Answer:

x=-1

Step-by-step explanation:

x+2-1=0

-1+2=1

1-1=0

y=0

5 0
2 years ago
Read 2 more answers
If restaurant served 517 meals at lunch. It then served 257 meals at dinner. How many meals did it serve in all
SVEN [57.7K]

Answer:

517 + 257 = 774

Step-by-step explanation:

4 0
3 years ago
Other questions:
  • Which is an equation of the line with a slope of (1,4) and a y-intercept of-2​
    14·1 answer
  • EXPERTS/ACE/GENIUSES
    15·1 answer
  • Find the value of x and y and please show all work.
    15·1 answer
  • A basketball diamond is actually a square with sides of 90 feet. If a runner tries to steal second base, how far must the catche
    6·1 answer
  • What is (3xy^2)(-6xy^4)
    9·1 answer
  • 2 times the sum of a number and 8 is equal to the difference of 10 and that number find the number
    10·1 answer
  • The sum of two numbers is 38. Their difference is 50. What are the numbers?<br><br> 20 POINTS
    11·1 answer
  • Which is the equation of a hyperbola with directrices at y = ±2 and foci at (0, 4) and (0, −4)?
    6·1 answer
  • Are the angle measurements in this triangle correct?
    13·2 answers
  • For each problem, identify the variables, write the equations, and solve
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!