Question: 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

 c++ 1. Design and implement a Line structure. Lines can be

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

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!