Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Hello, I have to make a calculator in pep9 and i am having some issues. It calls for the use of subroutines for each operator('+',
Hello, I have to make a calculator in pep9 and i am having some issues. It calls for the use of subroutines for each operator('+', '-', '/', '*') and if the user inputs a q or Q then the loop will end. We can only use local stack variables for the string definitions, so we cannot use .word, .byte, or .block. If an overflow occurs we must print "error", we are advised to use character input to get the operation and DECI to get the operands off the stack. This is the example input given(+ 3 6 - 3 6 / 50 3 * 7 10000 * -3 3 * -3 -3 - -3 -3 q)
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