Write code in python (pseudocode) and make a flow chart
- Durum: Closed
- Ödül: $10
- Alınan Girdiler: 0
You have to write a code in python (pseudocode) (All i need is the code that runs) and a flowchart
The application has a main function, which displays a typical calculator interface, plus a "Quit" button. When the appstarts, it goes into an infinite loop, which can only be terminated by clicking on the Quit button.
By clicking on the appropriate buttons, the user can:
enter the first value, which will be checked to ensure the value is numeric (you need only be concerned with integers at this time)
select the operand (+,-,*,/,%) by clicking the appropriate button
enter the second value
select the equals (=) button to display the results
The application will have separate, and self-contained functions for addition, subtraction, multiplication, division, and the modulus. The appropriate function will be called based on the user's operand selection, and will receive the values it will calculate via two parameters.
The division and modulus functions will verify that the divisor is not zero, and not perform a calculation if it is.
Each function will return its results in a string.