Question
Write a program proj3_1.cpp that reads from user the length in feet and inches into two separate variables. Then, your program should convert the feet
Write a program proj3_1.cpp that reads from user the length in feet and inches into two separate variables. Then, your program should convert the feet and inches into two other variables holding meters and centimeters. The conversion factor between feet and meters is 0.3048 meter/feet. You should use 3 functions: one for input, one for conversion, and one for displaying the results. Do not accept negative input. The user should be able to choose to repeat the program for another set of values to be converted. REQUIRED: the input and conversion functions should use call-by-reference. Must use 4 separate variables for feet, inches, meters, and centimeters. IMPORTANT: without functions your program will not receive more than 20 points even if it runs correctly. It's all about functions. Sample run: Enter feet: 4 Enter inches: 5 Result of conversion: 1 meter(s) and 35 centimeters. Do you want to convert another set of values (Y/N)? Y Enter feet: 6 Enter inches: 7 Result of conversion: 2 meter(s) and 1 centimeters. Do you want to convert another set of values (Y/N)? N Good Bye!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started