I need help in creating a conversion program to convert kilograms to pounds. The user will enter a number for weight and a char for unit of measurement K= kilo or P=pound and the program should display the other corresponding weight.
Printable View
I need help in creating a conversion program to convert kilograms to pounds. The user will enter a number for weight and a char for unit of measurement K= kilo or P=pound and the program should display the other corresponding weight.
1 lb = 0.453 592 370 kg(exakt, per definitionem) (according to Wiki)
1 kg ≈ 2.204 622 622 lb
What do you have written so far and where are you having problems?
Sounds like you just don't want to do your homework. I could write that program in 5 lines of code.
Give us what you've written so far and we'll gladly explain what you are doing wrong, but we won't start you from nothing.