Marie program | Information Systems homework help

 

Write a MARIE program that accepts an integer from the user, and if it is a prime number the program will output 1, otherwise, the program will output 0. 

Don't use plagiarized sources. Get Your Custom Essay on
Marie program | Information Systems homework help
Just from $13/Page
Order Essay

Examples: 

If the user input is 17, the output would be 1

If the user input is 2, the output would be 1

If the user input is 15, the output would be 0

If the user input is -2, the output would be 0

You should write and run the program using MARIE simulator. Add enough comments to understand your code.

You do not have to include the .mas file in the submission. Instead, the code should be presented as a word-processed section in the assignment, not as an image. 

Insert images to show you have tested the code with several possibilities.

Calculator

Calculate the price of your paper

Total price:$26
Our features

We've got everything to become your favourite writing service

Need a better grade?
We've got you covered.

Order your paper