Write a marie program that accepts an integer from user

Assignment Help Programming Languages
Reference no: EM132366664

Question: 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, not as an image.

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

Reference no: EM132366664

Questions Cloud

Create your spss data set by entering the number : Create your SPSS data set by entering the number of activities of daily living performed by the depressed clients in the Data View window.
Describe program functionality based on analysis : Assignment - Sonnets and Doublets - Explain the importance of programming style concepts and Recall and use typical programming constructs to design
Describe what it means to say a group is functioning : Describe what it means to say a group is functioning effectively. Does that require focus, task completion, and/or meeting targets and goals?
Identify other advantages and challenges the organization : Identify other advantages and challenges the organization is likely to confront when making this strategic change to virtual, cross-site, global teams
Write a marie program that accepts an integer from user : 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.
Provide examples of a company that has demonstrated : Please provide examples of a company that has demonstrated this relationship.
Main issues in fundraising management today : How has the mix of income been changing for the typical nonprofit over the past twenty years?
Explain what the given terms mean to you : In your own words, explain what the following terms mean to you as they apply to information security and safe computing: Confidentiality, Integrity.
Relationship between orders and products : If you were given an ERD that contained a M:N relationship between orders and products, what would you need to do in order to create the tables and relationship

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd