Ok this is what I have so far. I believe this is correct, but how do I find the number of yards, feet and inches in the user input? Any clue?
#include <iostream.h>
using namespace std;
int main()
{
ofstream outfile;
const double conversion = 2.54;
double centimeters;
double inches;
outfile.open("lengthout.txt");
cout << "Enter length in centimeters: ";
cin >> centimeters;
cout << endl;
cout << "The number entered was " << centimeters
<< " for centimeters. " << endl;
centimeters = inches * conversion;