View the step-by-step solution to:


This question was created from C1500 Assignment 01 (1).doc


Write a program that converts a measurement given in feet into the equivalent number of (a)
yards, (b) inches, (c) centimeters, (d) meters. The program should first prompt the user to
enter the number of feet to be converted. It should then read that value, calculate each of the
converted lengths, and then display the converted lengths, rounded to two decimal places of
accuracy. You should assume that the number of feet entered will be a floating point value.
Note: All the converted lengths will also be floating point values. Conversion facts: 1 yard =
36 inches; 1 foot = 12 inches; 1 inch = 2.54 cm; 1 meter = 100 cm. Here is what output
should look like from running the program (user input is shown in bold):
Enter number of feet: 4
1.33 yards
48 inches
121.92 cm
= 1.22 meters

Top Answer

#include <iomanip> #include<iostream> using namespace std ; int main () { float... View the full answer

number of feet.JPG

Sign up to view the full answer

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question