Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

use python thank you Chapter 3 Assignment Distance Formula Sep 24, 2018 11.55 pm Title Due Number of resubmissions allowed Accept Resubmission Until Status Modfied

use python
thank you
image text in transcribed
Chapter 3 Assignment Distance Formula Sep 24, 2018 11.55 pm Title Due Number of resubmissions allowed Accept Resubmission Until Status Modfied by instructor Oct 15, 2018 11 55 pm In progress Sep 17, 2018 823 am Instructions Calculate the distance between two points as follows 1. Input Prompt the user or two ordered 2 Calculate the length of the two legs of the right triangle: (x2-x1) (y2-y1) 3 Calculate the distance between the two points using the Pythagorean Theorem. Remember that the length of the hypotenuse (distance) equals the square root of the sum of the legs squared 4 Print out the distance in the follow three ways pairs (x1, y1), (2, y2) 1. Rounded to the nearest whole number 2 Rounded to the nearest tenth 3 Rounded up (always) to the nearest whole number (ie, 3.2 would round up to 4.0). Extra Credit: Modify the quadratic py example from the textbook as follows 1. If the discriminant is negative, print out "There are no real roots 2 If the discriminant is zero, print out the one root (ie, just print out the first root (dont print out both-they are the same) 3 If the discriminant is positive, print out both roots

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

List out some inventory management techniques.

Answered: 1 week ago