Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Contemporary Issues In Database Design And Information Systems Development

Authors: Keng Siau

1st Edition

1599042894, 978-1599042893

More Books

Students also viewed these Databases questions