n00b++
09-22-2003, 06:21 PM
Im new to these forums, I need some help with a program that im trying to write:sad:. Ok Im supposed to convert metric system to the british system. The program is supposed to look something like this( user inputs are in bold):
Which metric units do you want to convert? (Enter g for gram, k for kilogram or m for metric ton) : m
Enter the number of metric tons: 20.3
20.3 metric tons is equivalent to the following british mesurements.
TONS POUNDS OZ
=============================
22 753 13.43
Do you have another number to convert?(Enter 'y' or 'n'):
ok so thats what its supposed to look like. I just need help with the function(s) I should write. I have no idea how he got 735 pounds and 13.43 oz.... If someone could point me in the right direction i would be forever greatfull. thanks
Which metric units do you want to convert? (Enter g for gram, k for kilogram or m for metric ton) : m
Enter the number of metric tons: 20.3
20.3 metric tons is equivalent to the following british mesurements.
TONS POUNDS OZ
=============================
22 753 13.43
Do you have another number to convert?(Enter 'y' or 'n'):
ok so thats what its supposed to look like. I just need help with the function(s) I should write. I have no idea how he got 735 pounds and 13.43 oz.... If someone could point me in the right direction i would be forever greatfull. thanks