Question: codehs 5.2.5 Write a function that takes a height in feet and inches and converts it to meters. For example, if you are 6 feet,
Write a function that takes a height in feet and inches and converts it to meters. For example, if you are 6 feet, 4 inches tall, then calling convertHeightToMeters (6,4); should result in 1.9304 meters. With all these calls, convertHeightToMeters (6,4); convertheightToMeters (5,8); convertheight ToMeters (5,2); you should print: 6 feet, 4 inches =1.9304 meters 5 feet, 8 inches 1.7272 meters 5 feet, 2 inches =1.5748 meters Your function must be named convertheightroMaters Note: Be sure to include comments for all functions that you use or create
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
