Question: Modify the program 1 1 - 1 0 from pages 7 5 3 - 7 5 5 as follows: 1 . To Length class files

Modify the program 11-10 from pages 753-755 as follows:
1. To Length class files (Length.h and Length.cpp) add the operator overload for stream insertion () and stream extraction (>>) from page 759. You should not use the modified version of class Length from page 759 because it contains more operator overloads. Instead of typing you can use copy/paste from Length1.h and Length1.cpp respectively.
2. In main() replace the lines 11-16 with appropriate usage of stream extraction overload (>>) to change "first" and "second" objects with values inputted by the end user.
3. In main(), replace the output on lines 21,22 and 25,26 with appropriate usage of stream insertion () operator.
The resulting output should be identical with the unmodified version of the program.
Save and submit your files as Length.h, Length.cpp, and pr11-10_Lab.cpp.
 Modify the program 11-10 from pages 753-755 as follows: 1. To

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!