-3

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.

Nayan
  • 3,014
  • 2
  • 17
  • 33
user3125692
  • 85
  • 3
  • 11

1 Answers1

3

The best example of unit convert is below link..

Mani
  • 17,549
  • 13
  • 79
  • 100
Kirit Modi
  • 23,155
  • 15
  • 89
  • 112