Write a program that reads in a length in feet and inches and outputs the equivalent

Write a program that reads in a length in feet and inches and outputs the equivalent
length in meters and centimeters. Use multiple functions:

MAIN, HSKP, READ, PROCESS, ENDOFJOB, etc.

Include a loop and terminate the program on a special key (IE. 0 feet and 0 inches).

There are 0.3048 meters in a foot, 100 centimeters in a meter and 12 inches in a foot.

i dont get how to use hskp or and of those things... i made my own program without it but my professor wont accept it... can someone help me??

#include <cstdlib>
#include <iostream>
using namespace std;
void convert(int,int);
int main(int argc, char *argv[])
{
int feet;
int inches;
cout << "Enter number of feet below.\n";
cin >> feet;
cout << "Number of inches?\n";
cin >> inches;
convert(feet, inches);
system("PAUSE");
return EXIT_SUCCESS;
}
void convert(int feet, int inches)
{

double meters=feet*0.3;
double cm = inches*2.54;

cout << meters << " meters and " << cm << " centimeters. OR...\n";

cout << meters+(cm/100) << " meters. OR...\n";
cout << (meters*100)+cm << " centimeters.\n";
}



thats what i got..
some how i have to incluse HSKP, Process, and Endofjob
hskp, process and endofjob are the names of functions that you are expected to write. In capital letters, it seems.

I expect your professor wants to see evidence that you can make more than one function and use them.
how do i add them, idk how to do that and idk where to add them either
Do you know how to write the function convert?
nooo i dont, and my friend helped me with this function so like idk what to add or change on here
Here, we tend not to outright do people's homework for them. If you don't know what a function is, you need to go back to the start to begin learning.
Topic archived. No new replies allowed.