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 doubleand a private data member for length unit of measure a stringThe 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 problemzip 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.hlengthcpptestlengthpartacppand 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.hlengthcpptestlengthpartbcppmakefile and correctlengthpartb.cpp are in the same directory, and type make testlengthpartb at the command prompt
C length.h
C length.h
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
