Question: I need help with Python. Please follow all the instructions. Program Requirements Some whole numbers can be split into smaller pieces, where each piece contains
I need help with Python. Please follow all the instructions.



Program Requirements Some whole numbers can be split into smaller pieces, where each piece contains the same number of digits. For a subset of the whole numbers which can be split evenly, the pieces are in numerically increasing order. Examples: 154152 can be split evenly into two-digit pieces (15, 41, 52) - increasing order 154152 can be split evenly into three-digit pieces (154, 152) - not increasing order 154152 cannot be split evenly into five-digit pieces 173 can be split evenly into one-digit pieces (1, 7, 3)- not increasing order 173 can be split evenly into three-digit pieces (173) - increasing order 173 cannot be split evenly into two-digit pieces Design, implement and test a Python program that checks to see if a user-supplied whole number can be split evenly into pieces that are in numerically increasing order. 1. The program will prompt the user to enter a whole number. If the user enters an invalid input (anything other than a whole number), the program will repeatedly prompt the user until a valid input is entered. 2. The program will then prompt the user to enter the number of digits in each piece. The program will verify that the input is valid (a whole number which is a proper divisor of the number of digits in the first input); if the input is invalid, the program will repeatedly prompt the user until a valid input is entered. 3. The program will split the number into pieces and display those pieces on one line (separated by commas). 4. The program will report whether or not the pieces are in numerically increasing order. If there is only one piece, it is defined to be in numerically increasing order. 5. The program will keep track of "scores", i.e., the number of times that the pieces are in numerically increasing order or decreasing order. Once the score reaches 5 numerically increasing sequences, the "game" tells the user that they won and ends. 6. Add one other "Fun" feature to the game. This is intentionally broad - so if you're more comfortable with programming, you could add something fun and creative here. If you're newer to programming, it could be more simple like another "score" variable you track for "losing" the game after 5 decreasing sequences. Be creative!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
