C++: Programming Problem - Convert to Meters

Name: _________________________________

Write a function named toMeters which takes two float parameters, a number of feet and a number of inches and returns the floating point number of equivalent meters. Assume there are 2.54 centimeters (0.0254 meters) in one inch. Write only the function.

Sample Usage

    cout << toMeters(5, 11);

This would print 1.8034, the number of meters in 5 feet, 11 inches.