Create a PYTHON program using the instruction in the picture. Test case 2:Ener two numbers: XXXXXXXXXXEner an operator [+, -, /,-):-Output::5.50Do you want to continue, exit or compute another...


Create a

PYTHON

program using the instruction in the picture.


Calculator:<br>Initially asks for two numbers. Afterwards, ask the user to select the operator and perform the<br>calculation. Ask the user if a new calculation for two numbers is needed, or a computation for the<br>previous number will be required.<br>Test case 1:<br>Ener two numbers<br>: 15 25<br>Ener an operator [+, -, /,-)<br>:+<br>Output:<br>:40<br>Do you want to continue, exit or compute two numbers? [con, exit, com] exit<br><program ends><br>Test case 2:<br>Ener two numbers<br>: 11.50 6<br>Ener an operator [+, -, /,-)<br>:-<br>Output:<br>:5.50<br>Do you want to continue, exit or compute another two numbers? (con, exit, com] con<br>Enter another number<br>: 25<br>Ener an operator (+, -, /,-)<br>Output:<br>Do you want to continue, exit or compute another two numbers? [con, exit, com] exit<br>: 137.50<br><program ends><br>Test case 3:<br>Ener two numbers<br>:23.50 14<br>Ener an operator [+, -, 7,-]<br>Output:<br>Do you want to continue, exit or compute another two numbers? (con, exit, com] com<br>:/<br>:1.68<br>Ener two numbers<br>: 14<br>Ener an operator [+, -, /,-]<br>:+<br>Output:<br>: Missing number<br>Ener two numbers<br>: 14 15<br>Ener an operator [+, -, /,-]<br>:+<br>Output:<br>: 29<br>Do you want to continue, exit or compute another two numbers? [con, exit, com] exit<br><program ends><br>

Extracted text: Calculator: Initially asks for two numbers. Afterwards, ask the user to select the operator and perform the calculation. Ask the user if a new calculation for two numbers is needed, or a computation for the previous number will be required. Test case 1: Ener two numbers : 15 25 Ener an operator [+, -, /,-) :+ Output: :40 Do you want to continue, exit or compute two numbers? [con, exit, com] exit Test case 2: Ener two numbers : 11.50 6 Ener an operator [+, -, /,-) :- Output: :5.50 Do you want to continue, exit or compute another two numbers? (con, exit, com] con Enter another number : 25 Ener an operator (+, -, /,-) Output: Do you want to continue, exit or compute another two numbers? [con, exit, com] exit : 137.50 Test case 3: Ener two numbers :23.50 14 Ener an operator [+, -, 7,-] Output: Do you want to continue, exit or compute another two numbers? (con, exit, com] com :/ :1.68 Ener two numbers : 14 Ener an operator [+, -, /,-] :+ Output: : Missing number Ener two numbers : 14 15 Ener an operator [+, -, /,-] :+ Output: : 29 Do you want to continue, exit or compute another two numbers? [con, exit, com] exit
Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here