program for unit conversion! need help immediately

hey everyone,
please help me with this. thank you

Write a unit conversion program using the conversion factors of the table shown
below. Ask the users from which unit they want to convert (ou, gal, oz, lb, in,
ft, mi) and which unit they want to convert to (ml, l, g, kg, mm, cm, m, km).
English Metric

1 Ounce = 29.586 milliliter
1 gallon = 3.785 liter
1 ounce (oz)= 28.3495 grams
1 pound = 453.6 grams
1 inch = 2.54 centimeter
1 foot = 30.5 centimeter
1 mile = 1.609 kilometer

Reject incompatible conversions (such as gal → km). Ask for the value to be converted;

then display the result:
Convert from? gal
Convert to? l
Value? 2.5
2.5 gallon = 9.462 liter
Note: Where applicable define your variables as constants and use proper styling
conventions appropriate to constant values.
We're not going to do the assignment for you. If a part is giving you trouble, then tell us what it is and we can help clarify it.

Just posting a homework problem isn't going to get much of a response.
Topic archived. No new replies allowed.