#include <iostream>
#include <cmath>
usingnamespace std;
int main()
{
int answer;
// function prototypes
int menu(int answer);
// These are to make sure there's a separate function call for each menu choice
int lenght(int answer);
int weight(int answer);
int volume(int answer);
{
cout << "Pick a choice from the list";
cout << "1. will convert lenght;kilometers to miles ";
cout <<"2. will convert weight; lbs to ounces";
cout <<"3. will conver liters to u.s. gallons";
cin >> answer;
menu(answer);
}
}
int menu(int answer)
{
switch (answer)
{
case'1' :
cout << "Enter kilo to convert to miles";
cin >> lenght;
lenght = lenght * 0.62137;
break;
case'2' :
cout << "Enter lbs to convert to ounces";
cin >> weight;
weight(weight * 16.000);
cout << "new onces is" << lenght << endl;
break;
case'3' :
volume(volume * 0.26417);
cin
break;
default:
cout << "" << endl;
}
}