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 from pages as follows:
To Length class files Lengthh and Length.cpp add the operator overload for stream insertion and stream extraction from page You should not use the modified version of class Length from page because it contains more operator overloads. Instead of typing you can use copypaste from Lengthh and Lengthcpp respectively.
In main replace the lines with appropriate usage of stream extraction overload to change "first" and "second" objects with values inputted by the end user.
In main replace the output on lines and 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 prLab.cpp
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
