Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Business Management Expert

1.(a) The Fibonacci numbers are the numbers in the following integer sequence, called the Fibonaccisequence, 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.

(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.

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.

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.

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 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;

Business Management, Management Studies

  • Category:- Business Management
  • Reference No.:- M93062015

Have any Question?


Related Questions in Business Management

Case study of a public sector institution implementing

Case Study of a Public Sector Institution implementing Innovation For this assignment you are required to: Select a public sector institution that is known for its innovativeness, and that uses technology intensively to ...

Describe the crawl-walk-run cwr metaphor for leader

Describe the Crawl-walk-run (CWR) metaphor for leader development?

Why should companies furnish her staff or employees with

Why should companies furnish her staff or employees with floating holidays?

What are examples of structures that provide governancewhat

What are examples of structures that provide "governance"? What are examples of positions that provide "management"? How familiar are you with your organization's governance and management?

Someone installed malware on carlos computer it records his

Someone installed malware on Carlo's computer. It records his purchases on Amazon and other sites and reports them to an agency that sends Carlo advertisements for other products. This is not a big deal. Do you agree? Ex ...

Nordstrom inc is a seattle-based department store rivaling

Nordstrom Inc. is a Seattle-based department store rivaling the likes of Saks Fifth Avenue, Neiman Marcus, and Bloomingdale's. Nordstrom is a Hall of Fame member of  Fortune  magazine's "100 Best Companies to Work For" l ...

Please response to a discussion post below from a

Please response to a discussion post below from a classmate. The three concepts or ideas I have gathered from my time in class are the basic principles of servant leadership, leadership and culture in military operations ...

Outline how the culture of a country might influence the

Outline how the culture of a country might influence the risks of doing business in that country. Illustrate the answer with examples.

Which generic competencies are strong in which of the value

Which generic competencies are strong in which of the value chain elements for Google company and why? (operations, sales& marketing, distribution, service, net profit margin??)

As organizations build inclusion efforts to drive diversity

As organizations build inclusion efforts to drive diversity (e.g., pluralism, structural integration, informal network integration, absence of prejudice and discrimination, and minimum intergroup conflict), what barrier ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As