C++ program that calculates third point of a triangle

In Progress Posted Oct 21, 2015 Paid on delivery
In Progress Paid on delivery

Write a program that asks the user to input the coordinates of 2 points; A(X1,Y1) and B(X2,Y2). The program should calculate the coordinates for the point C(X3,Y3) which satisfies the following;

The line through BC is perpendicular to the line through AB

The length of the line segment BC is equal to the length of AB

Calculate the following

The length of each side, AB, BC,AC, of the triangle formed by the points A,B,C

The perimeter and area of the triangle ABC

The x and y coordinates of the midpoints of each side of triangle ABC

The perimeter and area of the triangle formed by the midpoints of the sides of triangle ABC

The finished program should display the following in this order

The X and Y coordinates of points A, B and C

The length of each side (AB, BC,AC) formed by the points A, B, C

The perimeter and area of the triangle ABC

The X and Y coordinates of the midpoints of each side of the triangle ABC

The length of each side of the triangle formed by the midpoints of the sides of triangle ABC

The perimeter of the triangle formed by the midpoints of the sides of the triangle ABC

The ratio of the perimeter of triangle ABC to the perimeter of the triangle formed by the midpoints of the sides of triangle ABC

The program must be written using only algebra, NO TRIG

All output values should be precise to tenths

The program should account for all special cases associated with points P and Q

The program must be written using only simple commands such as:

Double (NO FLOAT), cin, cout, IF/ELSE statements, and equations

HELPFUL INFORMATION THAT I HAVE ALLREADY FOUND (LESS WORK FOR YOU)

Seeing as AB AND BC must be perpendicular and have same lengths, the triangle formed will always be an isosceles right triangle meaning that angle B is always 90 degrees, and angles A and C are always 45 degrees.

Midpoint formula: ((X1+X2)/2,(Y1+y2)/2)

Slope formula: M= (Y2-Y1)/(X2-X1)

Standard form of a line: AX+BY=C

Point slope form of a line: Y-Y1=M(X-X1)

Slope intercept form of a line: Y=MX+B y-intercept=(0,B)

Perpendicular line: Y= - 3/2 MX+B (Multiply the original line slope by - 3/2 and then get new Y intercept)

Area: A=1/2 A*B

This program Must be finished by 12:00 PM eastern time on 10/22/15

C++ Programming Matlab and Mathematica

Project ID: #8737812

About the project

8 proposals Remote project Active Oct 21, 2015

8 freelancers are bidding on average $29 for this job

bsse2059

Hi sir....!! I will do that project just in few hours. I have read your specifications and I will do it. I have good skills in C/C++. I will write an efficient and bugs free code which will be easy to understand.

$25 USD in 0 days
(28 Reviews)
4.5
needoCh

Hi, I am Software Engineer. I have skills in Desktop Application Development, Android Development, Databases, Web development and Graphics Designing. I have experience with C/C++, C#, Java, Visual Basic, SQL/MySQL, HT More

$50 USD in 1 day
(20 Reviews)
4.2
TarasKuzyo

HI! I have good experience in C++ programming. I can deliver you clean and high quality code in due time according to the project description.

$30 USD in 1 day
(18 Reviews)
4.3
epsilon001

Hello Sir, I am experienced developer. I can do your project easily. Contact me so we can move forward. I am waiting for your response. Regards Qasim Saleem

$40 USD in 2 days
(15 Reviews)
3.5
khimanichirag

Hi I can help you out in this. Please get in touch for more details. I have very good command over C++ so I can easily solve this. Thanks Chirag Khimani

$25 USD in 1 day
(0 Reviews)
0.0
ArgelFN09

I graduated in Nuclear Physics and am currently pursuing a MS degree in physics at the University of Sao Paulo, I have extensive knowledge of programming in C / C ++ language.

$15 USD in 1 day
(0 Reviews)
0.0
nicksetliff

I'm a software engineering student in my sophomore year. I just found out about freelancer.com today and would love to complete this C++ project for you.

$30 USD in 2 days
(0 Reviews)
0.0
nasirhjafri

A proposal has not yet been provided

$19 USD in 1 day
(0 Reviews)
0.0