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
Posted: Fri Jul 08, 2022 6:34 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 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