Question
C++ Take in a value in inches and a command in which to convert to. The commands are as follows: m millimeters C centimeters M
C++ Take in a value in inches and a command in which to convert to. The commands are as follows:
m millimeters
C centimeters
M meters
Example 1 m would convert 1 inch to millimeters.
1 inch = 25.4 millimeters
1 inch = 2.54 centimeters
1 inch = 0.0254 meters
Use a switch statement to determine what to convert to.
(my code)
#include
(please fix it and tell me where i messed up.and there is some else who answered this but they use header.and my clas is only use "#include
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started