We're Open
+44 7340 9595 39
+44 20 3239 6980

WRITE A MARIE PROGRAM USING A LOOP

  100% Pass and No Plagiarism Guaranteed

WRITE A MARIE PROGRAM USING A LOOP

Task

 

Total Marks: 15

 

Answer the following Questions:

 

[This task requires you to use the MARIE simulator for Question 1. Prior to starting this task, you must ensure that the simulator is running correctly by completing the tutorial provided with the simulator, located under Resources within the Interact site.]

 

  1. Write a MARIE program using a loop that multiplies two non-negative numbers by using repeated addition. For example, to multiply 3 x 6, the program would add 3 six times (e.g. 3 + 3 + 3 + 3 + 3 + 3) or add 6 three times (e.g. 6+6+6). You should write and run the program using MARIE simulator. Also write the code with Address, Instruction, and Comments. [5 marks]
  2. You are designing an instruction set for your computer. All the instructions are of same size (11 bits long). The size of an address field is 4 bits. You have already designed five 2-address instructions and 40 1-address instructions. How many 0-address instructions can still you can fit? Justify your answer. [5 marks]
  3. Write code to implement the expression: A= (B + C) * (D - E) on 3-, 2-, 1- and 0-address machines. In accordance with programming language practice, computing the expression should not change the values of its operands. [5 marks]

 

Rationale

 

This assessment task covers topics on CPU operation and Instruction Set Architecture, and has been designed to ensure that you are engaging with the subject content on a regular basis. More specifically it seeks to assess your ability to:

 

  • be able to demonstrate and appropriately use computer organisation and architecture terminologies;
  • be able to investigate the internal operation of the Central Processing Unit (CPU) and describe how it is used to execute instructions;
  • be able to investigate and describe in detail the essential elements of computer organisation including internal bus, memory, Input/Output ( I/O) organisations and interfacing standards and discuss how these elements function;

 

Marking Criteria

 

Q/N

Fail (

Pass (50% - 64%)

Credit (65% - 74%)

Distinction (75% - 84%)

High Distinction (>84%)

1

Code does not meet specification.

Code meets specification but has errors in operation.

Code meets specification, however does not produce correct results for special inputs. Little documentation and comments.

Code meets specification and is well documented with comments.

Code meets specification, is well documented with comments, and produces correct results for any inpout. Deals with wrong inputs and exhibits proper messages in case of inappropriate inputs.

2

Incorrect answer with no demonstration of understanding the topic.

Student demonstrate the understanding, however the calculations are incorrect.

Answers are correct, omission of few calculations.

Answers are correct and clearly show the calculations

3

 Incorrect answers with no demonstration of understanding the topic.

Answers show basic understanding of the concept, however contain few errors

Answers are correct, omission of few details.

Answers are correct, meet all required instructions.


100% Plagiarism Free & Custom Written,
Tailored to your instructions


International House, 12 Constance Street, London, United Kingdom,
E16 2DQ

UK Registered Company # 11483120


100% Pass Guarantee

STILL NOT CONVINCED?

View our samples written by our professional writers to let you comprehend how your work is going to look like. We have categorised this into 3 categories with a few different subject domains

View Our Samples

We offer a £ 2999

If your assignment is plagiarised, we will give you £ 2999 in compensation

Recent Updates

Details

  • Title: WRITE A MARIE PROGRAM USING A LOOP
  • Price: £ 109
  • Post Date: 2018-11-09T07:11:59+00:00
  • Category: Assignment
  • No Plagiarism Guarantee
  • 100% Custom Written

Customer Reviews

WRITE A MARIE PROGRAM USING A LOOP WRITE A MARIE PROGRAM USING A LOOP
Reviews: 5

A masterpiece of assignment by , written on 2020-03-12

My order went 3 hours late and I also went mad. Then the customer support team calmed me down and offered me a flat discount of 50%. However, I did get my order and chilled out as the work was exactly what I requested. Next time I would place my order a bit sooner to save any trouble.
Reviews: 5

A masterpiece of assignment by , written on 2020-03-12

My psychology assignment just came on time and the overall quality is good. It’s also free from errors. I simply loved it!