C++ program that calculates third point of a triangle
$10-30 USD
Pagado a la entrega
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
Nº del proyecto: #8737812
Sobre el proyecto
8 freelancers están ofertando un promedio de $29 por este trabajo
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.
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.
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
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
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.
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.