Question: coordinate. Then, create a structure named Line with three (3) members. The members include length of type float, point A and B. Store five (5)

 coordinate. Then, create a structure named Line with three (3) members.

coordinate. Then, create a structure named Line with three (3) members. The members include length of type float, point A and B. Store five (5) input data in an array named In of type Line. The formula for length is Length V(X8 Xa)2 + (Yg Y.)2 Note: Please write C ++ statements WITHOUT blank spaces unless it is absolutely needed. Example: int num,a,b; 1 #include 2 #include 3 using namespace std; 14 5 6 int main() { /*a) Declare structure named Point with 2 members of type float named x and y (3 marks)*/ { 7 8 9 10 }; 13 14 15 16 17 18 /*b) Declare structure named Line with 2 members of type Point named A and B, and one member of { 20 21 22 23 24 25 26 27 }; 28 const int SIZE = 5; /*c) Define array named in of type Line with size 5. Note: use the declared SIZE constant (2 mar 31 32

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!