From Problem to Algorithm
- Step 2: Devising a plan. (continue…)
Do I know how to compute the length in cm?
Yes.
Length in cm is: 2.54 times length in inches
Complete plan (algorithm):
Get length in inches
Compute length in centimetres, using
2.54 * length in inches
Report length in centimetres