Question: c++ 1. Design and implement a Line structure. Lines can be modeled using slope-intercept form y = mx + b . 2. Create a vector
c++
1. Design and implement a Line structure. Lines can be modeled using slope-intercept form y = mx + b. 2. Create a vector of 5 line objects (hard code ok). (HINT: you need defaults in your constructor) 3. Demonstrate the use of the class methods in the main using a for loop. Note: No user interface here... this in an exercise in object oriented design.
***output must have slope y int and the equation y=mx+b***
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
