Question
input('Please enter the height to be converted.') feet = int(input('First, enter the feet: ')) inch = int(input('Now, enter the inches: ')) # process inches =
input('Please enter the height to be converted.') feet = int(input('First, enter the feet: ')) inch = int(input('Now, enter the inches: ')) # process inches = feet * 12 + inch cm = float((feet * 12 + inch)* 2.54) # output print('Your height is',feet,'feet',inch,'inches or',inches,'inches. That is',format(cm,'.2f'),'cm.')
# second input input('Please enter a second height to be converted.') cm2 = int(input('Enter the height in centimeters: ')) # second process inch2 = float(cm2 / 2.54) feet2 = int(inch2 // 12) inch3 = float(inch2 % 12) # second output print('Your height is',cm2,'cm, That\'s',format(inch2,'.3f'),'inches, or',feet2,'feet',format(inch3,'.3f'),'inches.')
how do i make the inch3 fractions and report the value to the nearest eighth
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