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

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!