marie program
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.
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.
7 years ago
10
Answer(0)
other Questions(10)
- Blacken the letter corresponding to the best answer on
- PPACA CONGRESS REPEAL
- Capstone Project: Milestone #1: PICO and Evidence Appraisal Worksheets
- ANT 202 Human Origins and Prehistory
- Modeling and Normalisation
- STUDENTRLYMIX
- OM300 Class work for Examplary_Professor001
- Managerial Economics MBA assignment 1
- Consider the following time series representing Natural Gas
- The collection of emerald-cut diamonds contains replications, several diamonds at each weight.