Question: Write a program that prompts the user to enter a distance in feet or meters and displays the equivalent distance in meters or feet. The
Write a program that prompts the user to enter a distance in feet or meters and displays the equivalent distance in meters or feet. The user should enter a number, one or more spaces, and then a word beginning with either M or F (upper or lower case). If an invalid word or number is entered, the program should display an error message. Example Run: Enter distance in meters or feet: 1 meter Output: 3.28084 feet
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
