Question: Create a calculator app USING PYTHON, tkinter, numexpr. It should provide the user with the ability to calculate basic arithmetic operations (add, subtract, multiply, divide).
Create a calculator app USING PYTHON, tkinter, numexpr. It should provide the user with the ability to calculate basic arithmetic operations (add, subtract, multiply, divide). For simplicity, the calculator should operate using the tabulation approach. This means only one operation is handled at a time. Meaning the user will specify a number then an operation then another number and press the equals button. In the event the equals button is not pressed but another operation button is pressed, the calculator should calculate the preceding value display it on the screen then proceed to use the recently calculated value as the first value of the next operation. Your calculator has the ability to perform the aforementioned operations as well a square root (2x), n'th root (nx), squaring (x^2), exponentiation (x^n), log and the natural log. Your calculator operates as a scientific calculator. This means an entire arithmetic expression is specified by the user. Once the equals button is pressed, the entire expression is calculated as a whole. It should respect the rules of Order of Operations.
Aside from the operations specified above the calculator should have a button that clears the current operation and value. It should also have a button that opens a window that displays the past 100 instructions and answers. The user should be able to click one of these past answers and it should automatically be input at the first value of on the calculator main screen. The calculator should have a button to clear everything in the memory. This list of instructions should persist after the application is terminated. In other words, if you open the app and make a few calculations then close the app, then open the app again, we should be able to view the calculations from the previous session. No information is lost when we quit the app.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
