Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is a beginning c++ class so please dont make it too complex Write a C++program that first asks you to enter a distance with

This is a beginning c++ class so please dont make it too complex image text in transcribed
Write a C++program that first asks you to enter a distance with units. Then the program should ask which distance you want to convert it to. You should display the desired unit conversion. The units your program should be able to convert from/to are: inches : "in" or "inches" feet : ft" or "feet" meters : "m" or "meters" centimeters: "cm" or ce ntimeters" Your program should be able to accept the input either as the shortened version right after the number (see example1) or as the full name after a space (see example 2). This applies to both the units before and after the conversion. The fi amount without units. Use the following conversions: 12 inches = 1 foot 1 foot- 0.3048 meters 1 meter 100 centimeters Example 1 (user input is underlined) Enter distance with units: 200m What do you want to convert this to? inches 7874.02 nal answer should be the converted

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Expert Oracle9i Database Administration

Authors: Sam R. Alapati

1st Edition

1590590228, 978-1590590225

More Books

Students also viewed these Databases questions

Question

In an Excel Pivot Table, how is a Fact/Measure Column repeated?

Answered: 1 week ago