Answered step by step
Verified Expert Solution
Question
1 Approved Answer
EXERCISE ONE: SINGLE UNIT CONVERTER The program should ask the user to enter a distance in Inches. The program will clear the screen after reading
EXERCISE ONE: SINGLE UNIT CONVERTER
The program should ask the user to enter a distance in Inches.
The program will clear the screen after reading the data from the user.
Then, the Program displays a menu Example:
a TO CONVERT FROM INCHES TO CENTIMETERS ENTER OR
b TO CONVERT FROM INCHES TO METERS ENTER B OR B
c TO CONVERT FROM INCHES TO FEET ENTER C OR C
d TO CONVERT FROM INCHES TO YARD ENTER D OR D
e TO CONVERT FROM INCHES TO KILOMETERS ENTER E OR E
f TO CONVERT FROM INCHES TO MILES ENTER F OR F
No conversion if any other character besides the listed above
Enter the Choice?
The program based on the character entered by the user will convert the number entered in step one to that specific unit.
The program will clear the screen after reading the data from the user.
The program will display the converted number.
EXAMPLE OUTPUTS
PLEASE ENTER A DISTANCE IN INCHES:
a TO CONVERT FROM INCHES TO CENTIMETER
b TO CONVERT FROM INCHES TO METERS
c TO CONVERT FROM INCHES TO FEET d TO CONVERT FROM INCHES TO YARD
e TO CONVERT FROM INCHES TO KILOMETERS
TO CONVERT FROM INCHES TO MILES
ENTER YOUR CONVERSION CHOICE: D
INCHES IS EQUIVALENT TO YARDS
PLEASE ENTER A DISTANCE IN INCHES:
a TO CONVERT FROM INCHES TO CENTIMETER
b TO CONVERT FROM INCHES TO METERS
c TO CONVERT FROM INCHES TO FEET d TO CONVERT FROM INCHES TO YARD
e TO CONVERT FROM INCHES TO KILOMETERS
f TO CONVERT FROM INCHES TO MILES
ENTER YOUR CONVERSION CHOICE:
INCHES IS EQUIVALENT TO METERS
PLEASE ENTER A DISTANCE IN INCHES:
a TO CONVERT FROM INCHES TO CENTIMETERS
b TO CONVERT FROM INCHES TO METERS
c TO CONVERT FROM INCHES TO FEET d TO CONVERT FROM INCHES TO YARD
e TO CONVERT FROM INCHES TO KILOMETERS
f TO CONVERT FROM INCHES TO MILES
ENTER YOUR CONVERSION CHOICE:
INVALID CHOICE AND THE CONVERSION RESULT IS NA
Page of
EXERCISE TWO: MULTIPLE UNIT CONVERTER
EXAMPLE OUTPUTS
PLEASE ENTER A DISTANCE IN INCHES TO CONVERT TO OTHER UNITS:
table INCHES IS EQUIVALENT TO:CENTIMETERSMETERSFEETYARDSKILOMETERSMILES
PLEASE ENTER A DISTANCE IN INCHES TO CONVERT TO OTHER UNITS:
INCHES IS EQUIVALENT TO:
CENTIMETERS
METERS
FEET YARDS
MILES
CONVERSION FORMULAS
tableInches centimeterInches meterInches footInches yardInches kilometerInches Need Exercise but both would be apriciated, thank you
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