Question: c++ 4. Write a function called feet2meters that takes 0, 1 or 2 integer arguments, converts the given length to meters and returns a double
c++

4. Write a function called feet2meters that takes 0, 1 or 2 integer arguments, converts the given length to meters and returns a double value. The first parameter to feet2meters is feet and defaults to 0 when no value is provided. The second parameter to feet2meters is inches and defaults to zero when no value is provided. 1ft - 0.3048m 1in 0.0254m Sample calls: cout
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
