Project Description
Starting with:
#include <iostream>
using namespace std;
int main() {
cout << "Enter your mass on earth: ";
double earthMass;
cin >> earthMass;
double const EQUATORIAL_SURFACE_GRAVITY = 0.1654;
double moonMass = EQUATORIAL_SURFACE_GRAVITY * earthMass;
cout << "Mass on the moon: " << moonMass << endl;
}
Rewrite this C++ console application such that it prompts the user for a distance and its unit type indicator (inch, foot, yard, mile, metre, kilometre, millimetre, angstrom, etc.), then outputs the equivalent measure in the alternate system (i.e. imperial is converted to metric, metric is converted to imperial).
Do a straight conversion, not a moon mass conversion.
Note: Imperial units of measure are not the same as U.S. customary units.
The executable file must be named ‘conv.exe’
Grading Criteria
Functional Requirements
Performs one conversion 50% 50%
Performs conversions in both directions 20% 20%
Performs additional conversions 10% 10%
Auto-detects the conversion (direction, type) 10% 10%
Non-functional requirements
Executable program is not named ‘conv.exe’ -10% 0%
Failure to respect submission requirements -10%/issue
Other issues my discretion
Total 100% 100%