❔ Help in question

Hello I need help solving a question that says: i need to write a program that receives 4 points like (x1,y1),(x2,y2),(x3,y3),(x4,y4) so that these points connect as a square shape then i need to calculate the circumference of the resulting from connecting the points (point 1 with 2.....) i need to use the dimension equation and i need to use the points in simple c# console (-8.3,2),(-3,-2),(5,2),(0,4.5)
2 Replies
LPeter1997
LPeter19972y ago
First, write the part that can read in a point, in case you need to read it from console input or file. Then, write a function that can compute the distance between two points (Pythagorean is your friend here). Finally you just need to add that 4 distances.
Accord
Accord2y ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.