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
Shtirlitz [24]
3 years ago
9

Assign point_dist with the distance between point (x1, y1) and point (x2, y2). the calculation is: distance = squarerootof( (x2

- x1)2 + (y2 - y1)2 ). sample output for the given program:
Mathematics
1 answer:
MissTica3 years ago
8 0
<span>import math def calculateDistance(x1,y1,x2,y2): dist = math.sqrt((x2 - x1)**2 + (y2 - y1)**2) return dist distance = calculateDistance(2,4,6,8) print distance</span>
You might be interested in
I need help fast plss ive failed this test 7 times already​
liberstina [14]

it's either a or b, not sure but I think it's b

5 0
2 years ago
Please answer all three questions asap
Whitepunk [10]

Answer:

70.0373

70.04

70.0373

Step-by-step explanation:

7 0
2 years ago
Which expression represents "5 times the sum of 4 and y?"
laila [671]
5(4+y) is the correct answer, you would be adding 4 and y then multiplying the sum by 5
7 0
3 years ago
Josie is training for a race the ratio of the number of minutes she wants to the number of miles she wants is 2043 she plans to
guajiro [1.7K]

Answer:

Josie takes 0.93 minutes to run 2 miles.

Step-by-step explanation:

We are given the following in the question:

Ratio:

Number of minutes: Number of miles = 20:43

Josie wants to run 2 miles. We have to find the number of minutes she need to run to maintain the ration.

Let x be the number of minutes Josie run.

This can be done in the following manner:

\dfrac{20}{43} = \dfrac{x}{2}\\\\\Rightarrow x = \dfrac{20}{43}\times 2\\\\\Rightarrow x = 0.93

Thus, Josie takes 0.93 minutes to run 2 miles.

8 0
3 years ago
You and your friend are comparing two loan options for a $165,000 house. Loan 1 is a 15-year loan with an annual interest rate o
Harlamova29_29 [7]

Answer:

No, he is wrong.

Step-by-step explanation:

Since, the total payment of a loan after t years,

A=P(1+r)^t

Where,

P = present value of the loan,

r = rate per period ,

n = number of periods,

Given,

P = $165,000,

In loan 1 :

r = 3% = 0.03, t = 15 years,

So, the total payment of the loan is,

A_1 = 165000(1+0.03)^{15}=165000(1.03)^{15}\approx \$ 257,064.62

In loan 2 :

r = 4% = 0.04, t = 30 years,

So, the total payment of the loan is,

A_2 = 165000(1+0.04)^{30}=165000(1.04)^{30}\approx \$ 535,160.59

Since, A_1 < A_2

Hence, total amount repaid over the loan will be less for Loan 1.

That is, the friend is wrong.

7 0
2 years ago
Other questions:
  • How do you figure out how many days they will once again be at opposition with one another?
    11·1 answer
  • A rectangular prism has a volume of 160 cm. The height of the prism is 5 cm. The length is twice the width. What are the dimensi
    13·1 answer
  • Three brothers, Justin, Jared, and Jonathan decided to buy a present for their mom's birthday. Justin gave decided to spend 1/4
    5·1 answer
  • A bank account has a beginning balance of $560.00. After 6 months, the balance in the account has increased to $572.60. What int
    5·2 answers
  • The volume of a cube of ice for an ice sculpture is 64,000 cubic inches.
    10·1 answer
  • a teacher guessed 30 students would ask for help. However, there were actually 35 students who came to get help. What was her pe
    15·1 answer
  • If 1 inch equals approximately 2.5 centimeters, how many centimeters are equal to 12.5 inches?
    10·1 answer
  • Solve the equation 8x= 2/3 what does x stand for
    5·2 answers
  • Show your work plzz :))))
    6·2 answers
  • 4653.8549 x 6663696.3
    6·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!