Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Q5) The midpoint of the line joining two points A(x, y and B(x2, y2) is(_ ,-) and the distance between the two points is AB

image text in transcribed
Q5) The midpoint of the line joining two points A(x, y and B(x2, y2) is(_ ,-) and the distance between the two points is AB = VUz-x1)2 + (y2-y1)2. Write a C+program that asks the user to enter the coordinates of the end points of a straight line and then output the coordinates of its midpoint together with the distance between the two points. Test your program using the coordinates of the following line: X2 12 3 1-9-1

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

More Books

Students also viewed these Databases questions

Question

What did our team do well?

Answered: 1 week ago

Question

1. How do most insects respire ?

Answered: 1 week ago

Question

Who is known as the father of the indian constitution?

Answered: 1 week ago

Question

1.explain evaporation ?

Answered: 1 week ago

Question

Who was the first woman prime minister of india?

Answered: 1 week ago

Question

Explain the concept of going concern value in detail.

Answered: 1 week ago

Question

Why We Form Relationships Managing Relationship Dynamics?

Answered: 1 week ago