write a c++ program to convert meters to feet. the program should request the st
ID: 3634431 • Letter: W
Question
write a c++ program to convert meters to feet. the program should request the starting meter value, the number of conversions to be made, the increment between meteric values, and a "while loop". the display should have appropriate headings and list the meters and corresponding feet value. if the number of iterations is greater than 10, have the program substitute a default increment of 10. use the relationship that 1 meter = 3.281 feet, and do not forget to include the while loop, so the program may be run and tested effectively.Explanation / Answer
#include #include using namespace std; int getChoice(); void feet2MetersInput(double& feet, double& inches, double& meters); void feet2Meters (double& feet, double& inches, double& meters); void meters2FeetInput(double& meters, double& centimeters, double& feet); void meters2Feet(double& meters, double& centimeters, double& feet); void main() { double f, i, m, c; int choice; do{ choice = getChoice(); if( choice == 1 ) feet2MetersInput(f, i, m); else if( choice == 2 ) meters2FeetInput(m, c, f); if( choice > 2 || choice < 1 ) coutRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.