Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

A Complete Guide To Data Science Essentials

Authors: Miguel

1st Edition

9358684992, 978-9358684995

Students also viewed these Databases questions

Question

5. Describe the visual representations, or models, of communication

Answered: 1 week ago