\$20 Bonus + 25% OFF

ITC544 Marie Programming

0 Download1 Pages / 213 Words Add in library Click this icon and make it bookmark in your library to refer it later. GOT IT
Questions:

1. (a) The Fibonacci numbers are the numbers in the following integer sequence, called the Fibonacci sequence, and are characterised by the fact that every number after the first two is the sum of the two preceding ones: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 114, … etc.

By definition, the first two numbers in the Fibonacci sequence are 0 and 1, and each subsequent number is the sum of the previous two. We define Fib(0)=0, Fib(1)=1, Fib(2)=1, Fib(3)=2, Fib(4)=3, etc. The first 22 Fibonacci numbers given below:

Fib(0)
Fib(1)
Fib(2)
Fib(3)
Fib(4)
Fib(5)
Fib(6)
Fib(7)
Fib(8)
Fib(9)
Fib(10)
0
1
1
2
3
5
8
13
21
34
55

Fib(11)
Fib(12)
Fib(13)
Fib(14)
Fib(15)
Fib(16)
Fib(17)
Fib(18)
Fib(19)
Fib(20)
Fib(21)
89
144
233
377
610
987
1597
2584
4181
6765
10946

Write a MARIE program to calculate Fib(n), where the user inputs n. For example, if the user inputs 7, the program outputs the value 13; if the user inputs 15, the program outputs the value 610; if the user inputs 20, the program outputs the value 6765 etc. You need to write and run the program using MARIE simulator. Please include appropriate comments to make your code readable.[10 marks]

(b) For some values of n, your program will not produce correct results. You can check this by gradually increasing the values of n and checking for the correct outputs. What is the maximum value of n for which your program produces a correct result? Why? Please comment on this [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 six 2-address instructions and 30 1-address instructions. How many 0-address instructions still you can fit? Justify your answer. [7 marks]

3. Write codes 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.

Cite This Work

My Assignment Help (2020) Marie Programming [Online]. Available from: https://myassignmenthelp.com/free-samples/itc544-it-fundamentals/negative-values.html
[Accessed 06 August 2021].

My Assignment Help. 'Marie Programming' (My Assignment Help, 2020) <https://myassignmenthelp.com/free-samples/itc544-it-fundamentals/negative-values.html> accessed 06 August 2021.

My Assignment Help. Marie Programming [Internet]. My Assignment Help. 2020 [cited 06 August 2021]. Available from: https://myassignmenthelp.com/free-samples/itc544-it-fundamentals/negative-values.html.

Latest Management Samples

ITC505 ICT Project Management

Answer: Introduction BT & Sons is based out in Australia and they are an enterprise that offers farming equipment to local farmers. They organize an annual event called RALS or Riverina Agriculture and Lifestyle show. Since last several years, RALS has grown gradually and finally it has grown so large that their manual ticketing system at place is starting to become restrictive. Globex is a division created by the enterprise to look after...

COMMLAW 2502 Legal Aspects Of International Business

Answers 1. On 13th August 1985, the Broken Hill Propriety Company Limited was formed, and this company comes into existence after the merger of two companies that was BHP and Billiton. (BHPBilliton, n.d.). Industry in which company operates- this company conducts its operations in metal and mining industry, and as per experts this industry is the largest industry in the world which involves 700 companies in the process of exploration of ...

BOS 4301 Industrial Hygiene

Answer Introduction The growth in the applications of commercial nanomaterials is rising at a tremendous rate. As this increase continues, it is advised that users and producers of this materials to ensure a healthy and safe working environment for all employees who may be prone to the exposure of this materials. Since the technology is new, knowledge to the occupational exposures to the agents and how it affect the safety state and health of...

CUC106 Design And Innovation Communicating Technology

Answer Virtual Fence for a Household Farm This project will be based on a farm to help prevent other animals from intruding into the poultry farm. It is a virtual fence that uses automated technology to control and prevent the entry of other animals in an estimated agricultural poultry farm of 2 hectares. Project Aims and Objectives The project aims at automatically controlling the operation of preventing intruding animals into the poultr...

Read More Tags: Australia Bayview Management Management & leisure University of New South Wales Masters in Business Administration

Answers To:  Inika Vera- Mae From: Jacky Tobin Subject Re: Analysis of recent housing survey data Dear Inika In response to your email highlighting house prices in the Blue Lake area, I have taken a sample data of 120 house sales that have been concluded recently in order to compute the information that is required by your organization in drawing a comparison. My observations in relation to the points raised by you are as follows. ...

Next

We Can Help!

Are you confident that you will achieve the grade?

Refer & earn

Just refer 5 friends to earn more than \$2000.

Still in Two Minds? The Proof is in Numbers!

33845 Genuine Reviews With a Rating of 4.9/5.

19 Jul 2021

Mechanical Engineering

Assignment: 8 Pages, Deadline: 8 days

Passed my subject because of you. Thank you........................................................................

User ID: 2***76 Sydney, Australia

19 Jul 2021

Healthcare

Essay: 1 Page, Deadline: 17 days

The depression rate has been increased by 31% among teenagers in America as a consequence of the excessive us ...

User ID: 6***41 Campbell River, Canada

19 Jul 2021

English

Assignment: 0 Pages, Deadline: 4 days

Grate job on my assignment. I got a 100 on it. thank you. I have two questions? 1)Whats The distance from Clarksville,TN to Dayton, Ohio? What's the ...

User ID: 7***74 United States

19 Jul 2021

Assignment

Essay: 5 Pages, Deadline: 6 days

Great job by an incredible organization that truly goes above and beyond to assist in any matter. I truly thank you again for your help.

User ID: 5***89 Hillsborough, United States

19 Jul 2021

Networking

Programming: 4 Pages, Deadline: 30 days

Very Good Team and they attend to you whenever u need them and make all the changes required as soon as possible.

User ID: 6***7 Brisbane, Australia

19 Jul 2021

It Write Up

Assignment: 4 Pages, Deadline: 16 days

This was short assignment but i was satisfied with the work. I got good grades and passed the assignment. The assignment was overall good. I ordered i ...

18 Jul 2021

Healthcare

Essay: 4 Pages, Deadline: 6 days

the revised version of the assignment was ok, based on the feedback for all the parts.

User ID: 5***77 Australia

18 Jul 2021

Nursing

Home Work: 4 Pages, Deadline: 4 days

My assignment always done on time sometime before the given time. MY ASSIGNMENT team is very responsive.

User ID: 4***34 United States

18 Jul 2021

Nursing

Assignment: 4.8 Pages, Deadline: 5 days

My Assignment was done very good. Good work and it was delivered on time. Very responsive.

User ID: 4***34 United States

18 Jul 2021

HRM

Thesis: 6 Pages, Deadline: 9 days

YOU WORKED HARD ON THIS ASSIGNMENT AND DID EXACTLY WHAT WAS ASKED. THANKS, AND I CAN'T WAIT FOR YOU TO DO WELL ON THE NEXT WORK.

User ID: 4***64 United States

19 Jul 2021

Mechanical Engineering

Assignment: 8 Pages, Deadline: 8 days

Passed my subject because of you. Thank you........................................................................

User ID: 2***76 Sydney, Australia

19 Jul 2021

Healthcare

Essay: 1 Page, Deadline: 17 days

The depression rate has been increased by 31% among teenagers in America as a consequence of the excessive us ...

User ID: 6***41 Campbell River, Canada

19 Jul 2021

English

Assignment: 0 Pages, Deadline: 4 days

Grate job on my assignment. I got a 100 on it. thank you. I have two questions? 1)Whats The distance from Clarksville,TN to Dayton, Ohio? What's the ...

User ID: 7***74 United States

19 Jul 2021

Assignment

Essay: 5 Pages, Deadline: 6 days

Great job by an incredible organization that truly goes above and beyond to assist in any matter. I truly thank you again for your help.

User ID: 5***89 Hillsborough, United States

19 Jul 2021

Networking

Programming: 4 Pages, Deadline: 30 days

Very Good Team and they attend to you whenever u need them and make all the changes required as soon as possible.

User ID: 6***7 Brisbane, Australia

19 Jul 2021

It Write Up

Assignment: 4 Pages, Deadline: 16 days

This was short assignment but i was satisfied with the work. I got good grades and passed the assignment. The assignment was overall good. I ordered i ...

18 Jul 2021

Healthcare

Essay: 4 Pages, Deadline: 6 days

the revised version of the assignment was ok, based on the feedback for all the parts.

User ID: 5***77 Australia

18 Jul 2021

Nursing

Home Work: 4 Pages, Deadline: 4 days

My assignment always done on time sometime before the given time. MY ASSIGNMENT team is very responsive.

User ID: 4***34 United States

18 Jul 2021

Nursing

Assignment: 4.8 Pages, Deadline: 5 days

My Assignment was done very good. Good work and it was delivered on time. Very responsive.

User ID: 4***34 United States

18 Jul 2021

HRM

Thesis: 6 Pages, Deadline: 9 days

YOU WORKED HARD ON THIS ASSIGNMENT AND DID EXACTLY WHAT WAS ASKED. THANKS, AND I CAN'T WAIT FOR YOU TO DO WELL ON THE NEXT WORK.

User ID: 4***64 United States

5% Cashback

On APP - grab it while it lasts!