Question: Python Program Instructions - Use a variety of loops to generate a table of decimal numbers, and its binary and octal equivalents in the range
Python Program
Instructions - Use a variety of loops to generate a table of decimal numbers, and its binary and octal equivalents in the range 1-256. Guidelines to follow:
- To generate the binary numbers use a "while-loop"
- To generate the octal numbers use a "for-loop"
- Program should print results to Console without using any of the Python conversion functions
- Program should prompt user for input
*NOTE* Comments with explanation to fully understand the process of the program will be much appreciated
Output Example:
Enter the low number: 1 Enter the high number: 10 Decimal Binary Octal 1 1 1 2 10 2 3 11 3 4 100 4 5 101 5 6 110 6 7 111 7 8 1000 10 9 1001 11 10 1010 12 ****Resetting low and high **** Low = 10, High = 15 Decimal Binary Octal 10 1010 12 11 1011 13 12 1100 14 13 1101 15 14 1110 16 15 1111 17 Press any key to continue . . .
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
