Get Writing Help
WhatsApp
    ✍ ️Get Free Writing Help
WhatsApp

I have this c++ program that i have to create but i am stuck on it….


  Write My Assignment FREE

Homework Help Question & Answers

I have this c++ program that i have to create but i am stuck on it….

I have this c++ program that i have to create but i am stuck on it.

Write a height conversion program that shall allow user to convert from feet and inches to meters (option 1) and vice versa (option 2). User shall be able to specify the type of conversion (a menu of two options). Display an error message if an invalid option is specified. Otherwise, the program would read in a length in feet and inches (two separate integer values like 5 and 6) and will output the equivalent length in meters (a double value) or read in a length in meters (a double value) and will output the equivalent length in feet and inches (two separate integer values and inches shall be between 0 and 11). There are 0.3048 meters in a foot, and 12 inches in a foot. For example, if 5 feet and 6 inches are entered for option 1 then the program should output 1.68 meters. On the other hand, if a value of 1.68 meters is entered for option 2 then the program should output 5 feet and 6 inches. You might need to perform casting (type conversion) and possibly rounding for this program to work properly
0 0
Add a comment
Plagiarism Free Assignment Help

Expert Help With This Assignment — On Your Terms

Native UK, USA & Australia writers Deadline from 3 hours 100% Plagiarism-Free — Turnitin included Unlimited free revisions Free to submit — compare quotes
    Write My Assignment FREE     Get A Free Quote →
Limited Offer     Get 25% off your first order — use code STUDYLINK25 at checkout    Claim Now
 
Don`t copy text!