I need to write a MATLAB code for this
question, but I couldn't figure how to do it.
7.
Engineers often have to convert from one unit of measurement to
another; this can be tricky sometimes. You need to think through
the process carefully. For example, convert 5 acres to hectares,
given that an acre is 4840 square yards, a yard is 36 inches, an
inch is 2.54 cm, and a hectare is 10000 m2.