Question: Please create a calculator that gets two numbers and an arithmetic operator as inputs. It is expected that your calculator returns meaningful results. Your calculator
Please create a calculator that gets two numbers and an arithmetic operator as inputs. It is expected that your calculator returns meaningful results. Your calculator should: 1. accept any numerical data including integer, real, and complex numbers. 2. support variety of arithmetic operators including addition, subtraction, multiplication, division, and power. 3. promote user to provide input values. Also, your program should be user friendly such that its users understand the meaning of outputs, receive meaningful outcomes in all conditions, and have time to read all the instructions and outcomes. E.g., ****************** Simple Calculator ****************** Please provide your first number: Please provide your second number: Please provide your mathematical operation: 4. has the capability to handle any unexpected inputs or arithmetic operation. For instance, if the user provides c instead of the first number it shows the following message Your input is not a numerical value
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
