Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Program Four function calculator Worth 25 points Requirements: Create a simple 4 function calculator User enters first number User enters one of four symbols: +
Program Four function calculator
Worth 25 points
Requirements:
- Create a simple 4 function calculator
- User enters first number
- User enters one of four symbols: + - * /
- User enters second number
- Program calculates the answer based on the symbol entered
- Program displays the problem and the answer
Technical Requirements:
- Use at least one if, if-else, or if-elif-else statement to determine action to take based on symbol
- Input and output should remarkably match the sample input and output
- Use input statements to enter both numbers and the symbol
- Include comments
Sample Input:
Enter a number: 4
Enter a symbol for mathematical operation either: + - * /: +
Enter a second number: 7
Sample Output:
4 + 7 = 11
Dont forget to include your design documents, your source code, and screen shot(s) of your output.
Insert Analysis/Design or Pseudocode Here:
Step 0: Initialize | Step 1: Input | Step 2: Process | Step 3: Output |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started