Question: In c++ 1. Define a Point class with coordinates (, ) 2. Builders 3. Destroyer 4. Member functions (mutators and accessors) 5. Function that shows
In c++
1. Define a Point class with coordinates (, ) 2. Builders 3. Destroyer 4. Member functions (mutators and accessors) 5. Function that shows the content of the point. 6. Implement a Static Array composed of instances of the Point class. 8. Build your diagram The Unified Modeling Language (UML) A. Determine if the lines containing the following pairs of points are parallel, coincide, perpendicular. Plot both lines to validate your results.
a. 1: (1,5) and (1,1) 2: (0,3) and (-3/2, 0) b. 1: (1,1) and (3, 1) 2: (0,1) and (1,0) c. 1: (1,1) and (2,0) 2: (0,1) and (1,2) d. 1: (0,0) and (2,2) 2: (1,5) and (1,1) e. 1: (1,1) and (2,3) 2: (3,4) and (0,0) F. 1: (0, 5) and (1.3) 2: (2, 0) and (0, 4) Consider the following cases: i. If the straight lines have the same slopes (1 = 2) and different cuts on the axis of (1 2) then both lines are Parallel. ii. If the straight lines have the same slopes (1 = 2) and has the same cut in the axis (1 = 2) then both lines are Match. iii. If the slopes of both lines 12 = 1 then both lines are Perpendicular. Find the point of intersection. Known formulas 1. Slope = 2 1 / x2 1 2. Equation of the line with slope m and that passes through the point with coordinate (1, 1) - 1 = ( - 1) 3. Equation of the line with slope and cut on the axis and equal to is = +
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
