Question: PYTHON - Create a program to solve the following problem: read two three-digit integers from the keyboard. Then calculate their product and the quotient and
PYTHON - Create a program to solve the following problem: read two three-digit integers from the keyboard. Then calculate their product and the quotient and the remainder which result when the first is divided by the second. The output should be formatted to appear something like the following:
Do both integer division and modulus division. Remember to create at least three variables to hold the different results.
After the display has been shown to the screen, the answer should also be saved to a text file. The file should be named results.txt and it should be written in the same directory as the Python program.
For the example above, the text file should contain something like 739 times 212 is 156668, and 739 divided by 212 is 3 remainder 103.
The problem also highlights how things can go wrong. What kinds of errors could arise, depending on the numbers which are input? And please provide comments explaining each step.
The first number is: 739 The second number is: 212 739 x 212 156668 3 R 103 212) 739
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
