Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

[Python] Wile a proyram that outbuts the equation of the perpendicular besector of the ine sepment betwen two points. Your program should - prompt lor

image text in transcribed
image text in transcribed
[Python]
Wile a proyram that outbuts the equation of the perpendicular besector of the ine sepment betwen two points. Your program should - prompt lor asd nour the coordnates of two points floc example (20,40) and (70,201 - cancule the sicoe of the line between those tao poits. - conpule the cosed nates of the midpont of the ine segment betwoen tho two points by averaging the two x coordinzias and the wo y coertinatiss - comsile the slope of teve perpendcula bisector by taking the negative recigcocal of the shoe of the ine segrent. - conpile tive y intenceec of the popensiculs bisector fyou now hwe the shope mot the bisector and a pont (amid, ymid) on the tisector, so ther intercest is yetid - rut mmid), and - oufuet the mapeint cooranales and tere equation of the bisector as shown below The fou re above itistrates the sample ine segment mentoned above asd ts perpendicular tisedion The figure above ifustates the sampie line sogment mentioned above and its perpendicular bisoctor Note: You need to consiser the special cases where the porpendicular bisector is veitical or horizorital as shown in tife sarrole hans ? and 3 Sample run 1 Enter x coordinata of point1: 2 Entor y coodinate of point -4 Enter x coordinate of poink: 7 Entbr y coortinate of pointz -2 midpoint coordinntes (4.50,-300) Brector equation y=2.5x+8.25 Sample run 2 Enatur x coordinate of point 2.5 Enter y coordinate of point 105 Enter x coerdinate of point 148 Enter y coordinate of poentz: 10.5 mudpoint coordinates (865,1050) Bisector ine is vertical with equation x=8.65 Sample run 3 Entue x coordinale of point1: 7.5 Eilier y coordinate of points: 3.8 Enter x cootdinate of point 7.5 Enter y coordinate of point : 20.5 midpoeal coordinales (7,50.12.15} Firvicior ine is troczontal with equation y=12.15

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_2

Step: 3

blur-text-image_3

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

How To Make A Database In Historical Studies

Authors: Tiago Luis Gil

1st Edition

3030782409, 978-3030782405

More Books

Students also viewed these Databases questions

Question

Understand the role of corporate design in communications.

Answered: 1 week ago