Question: In visual studio code ( C + + ) : Deliverable: length.h and length.cpp Purpose: Create a Length class that has a private data member

In visual studio code (C++):
Deliverable: length.h and length.cpp
Purpose: Create a Length class that has a private data member for the length value (a double)and a private data member for length unit of measure (a string).The code will include a constructor, accessor and mutator functions for the private data members, a public member function to convert between units of measure, and overloaded +,==,,and operators. Read the comments in the attached length.h file for more details.
Specifications: -The files for this problem are in the attached problem1.zip -All of the code for this problem should be included in length.h and length.cpp -Ensure that your class will compile, link and run with the initial tests provided in order to earn compilation points and to be eligible for correctness points.
Initial Testing: testlengthparta.cpp has been included with some minimal initial tests for the constructor, mutator functions, accessor functions, and convert function. To run these tests, ensure that length.h,length.cpp,testlengthparta.cpp,and makefile are in the same directory, and type make testlengthparta at the command prompt. testlengthpartb.cpp has been included with some minimal initial tests for the +,==,and operators. To run these tests, ensure that length.h,length.cpp,testlengthpartb.cpp,makefile, and correct-lengthpartb.cpp are in the same directory, and type make testlengthpartb at the command prompt
C length.h
C length.h
In visual studio code ( C + + ) : Deliverable:

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 Programming Questions!