Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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 centimeters

Explanation / Answer

#include using namespace std; int main() {       double cms=0.0;    coutcms;       double inches = (cms/2.54);    cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote