Description
Procedure and Loop Implementation using Assembly Language Programming
Q: Write a program, that will do the following –
- Take a signed multi-digit integer number as input using a procedure. While taking the number as input ignore any non-digit input and consider only the digit parts to form the number. [Operand 1]
- Take an operator from “+”, “-“, “*”, and “/”. For having “q” as an input, quit the program. For any other input, print “Wrong operator” and quit the program. [Operator]
- Take another signed multi-digit integer number as input using the same procedure as written for the first step. While taking the number as input ignore any non-digit input and consider only the digit parts to form the number. [Operand 2]
- Output “[Operand 1] [Operator] [Operand 2]”.
Submission Deadline: 10 PM, March 20, 2021
* While you are encouraged to talk to your peers, ask help from teachers, and search relevant resources from online, under no circumstances should you copy code from any source. If found out, you will receive full 100% negative marks.
1




