I have a problem:
My app allow user choose 2 options : Metric or Imperial.
- If user select
"Metric", height(cm), weight(kg)
. - If Select
"Imperial: height(inch) and weight (lbs)
.
I need to change value of height from inch to centimeter and weight from lbs to kg.
Example :
user input : 70 (inch) and 120 (lbs) ==> convert to 177.8 (cm) and 54.5 (kg)
Thanks in advance.