# A Simple Calculator in MARIE (20 marks) In this task you will develop a MARIE program that implements four basic functions of a calculator – addition, subtraction, multiplication and division…

**Question:**

A Simple Calculator in MARIE (20 marks) In this task you will develop a MARIE program that implements four basic functions of a calculator – addition, subtraction, multiplication and division. The program should be performing the user selected tasks (one of the mentioned mathematical operations) after the user enters one of the selection inputs, ‘a’, ‘s’, ‘m’or ‘d’. Here, input “a’ selects addition process, ‘s’ selects subtraction process, ‘m’selects multiplication process and ‘d’ selects division process. User enters ‘q’ to quit the program. You are required to write subroutines to perform these tasks (addition, subtraction, multiplication and division) and write a main program to process user selection inputs and call the appropriate subroutine thereof. The codes must contain comments, as a paragraph before any block of code i.e. subroutine or as inline comments wherever appropriate. You should submit the “* mas” files together with the rest of your assignment.

**Click the button below to view answer!**

If you happen to run into some problem while following the steps, please make sure to let us know in the comment section below, we’ll do our best to solve it. Apart from that, you can contact us on Facebook and Twitter, however we can’t guarantee a rapid reaction time over those platform

## 0 Comments