- Lab 11b Cm To Foot And Inches Write A Python Program That Asks For The User S Height In Cm The Program Then Converts T 1 (206.93 KiB) Viewed 31 times
Lab 11B: CM to foot and inches Write a Python program that asks for the user's height in cm. The program then converts t
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Lab 11B: CM to foot and inches Write a Python program that asks for the user's height in cm. The program then converts t
Lab 11B: CM to foot and inches Write a Python program that asks for the user's height in cm. The program then converts this size to the size measured in foot and inches and prints the converted numbers. Example: 168cm is 5 foot, 5 inches. . Convert cm to inches • Calculate how many feet are in the inches amount. The output should be an integer number. (Hint: Use the int function). • Calculate the remaining inches using the remainder function (%) • The remaining inches should be rounded up (Hint: Use the round function). • 1cm = 0.3937 inches. 1 foot = 12 inches. 1. Write an algorithm for this problem in pseudo-code in the editor below. 2. Translate your algorithm into Python code using the Python IDLE editor. 3. Add your name in a comment at the beginning of your program. 4. Save your file as "cmToFoot.py". 5. Upload your program file to MyCC. tur