Task

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 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 5 2-address instructions and 45 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. [8 marks]

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 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 5 2-address instructions and 45 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. [8 marks]

I will need the original file of the gantt chart and you have to show iteration if your approach requires it. Case Study – SolarPower Consider a project involving development of an Online SolarPower System...MITS5505Knowledge ManagementCase Study / Take Home Exercise - 4 of Lesson - 4March 2019Task 1: Brainstorming, Nominal Group Technique and ConsensusDecision.4.1 Divide into small groups of five to seven...Analyse how language and form is used in 'The Castle' to express community identity.In preparing your informed personal response, consider the following:• How responses to texts can be shaped through...this is a group assingment and class presentation - the question im doing is 2C (the ethical question) all i want is: - maximum 2 powerpoint slide in dot points so its easy for the class to understand...Corporate Law LAW2001Trimester 3 – 2016Assessment 1 - Participation Activity 2Module 2 (Topic 2.1) - Chapter 6 [2.5% - 5 marks]*Case Study 2Internal GovernanceJanice was an art dealer and the director...BMA735 Management EthicsSuggested readings for essay topics1. Do psychological understandings of moral judgement make normative approaches to business ethics obsolete?Anscombe, GEM 1958, ‘Modern moral...I want to buy the source codes for the below assignment: NIT6120 – Mobile Application Development Assignment 1 — Semester 1, 2019 An Android App worth 10% of your final mark Due Date: Week 8 Sunday 21...**Show All Questions**