Write a program that prompts the user to input a lengthexpressed in centimeters.
ID: 3616805 • Letter: W
Question
Write a program that prompts the user to input a lengthexpressed in centimeters. The program should then convertthe length to inches(to the nearest inch) and output he lengthexpressed in yards, feet and inches in that order. Conversionfactors needed are based on the following facts: 1 yard = 3 feet = 36 inches 1 foot = 12 inches 1 inch = 2.54 centimeters Write a program that prompts the user to input a lengthexpressed in centimeters. The program should then convertthe length to inches(to the nearest inch) and output he lengthexpressed in yards, feet and inches in that order. Conversionfactors needed are based on the following facts: 1 yard = 3 feet = 36 inches 1 foot = 12 inches 1 inch = 2.54 centimetersExplanation / Answer
#include using namespace std; int main() { double cms=0.0; coutcms; double inches = (cms/2.54); coutRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.