Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

4.1 Problem Statement i write a program inLC3assembly language that comptes ther-thiFibonaccinumber 2. Find the largest F, such that no overflow occurs, ie, find n

image text in transcribed
image text in transcribed
4.1 Problem Statement i write a program inLC3assembly language that comptes ther-thiFibonaccinumber 2. Find the largest F, such that no overflow occurs, ie, find n = N such that FN is the largest Fibonacci number to be correctly represented with 16 bits in two's complement format. 4.1.1 Inputs The integer n is in memory location x3100 3100 4.1.2 Outputs 3103 F 4.2 Example 3100 6 3103 F Starting with 6 in location x3100 means that we intend to compute Fs and place that result in location x3101 Indeed, . 8. (See below.) The actual values of N and FN should be found by your program, and be placed in their corresponding locations 4.3 Fibonacci Numbers The Fibonacci F, numbers are the members ofthe Fbonacci segence: 1.1.2.3.5.. .. The first two are explicitly defined: Fi = F-1-The rest are defined according to this recursive formula: F, F. + F. 2, In words, each Fibonacci number is the sum of the two previous ones in the Fibonacci sequence. From the sequence above we see that Fo8 Revaim. I August 14, 2005 4-1 4.4 Pseudo-code Quite often algorithms are described using pseudo-code. Pseudo-code is not real computer language code in the sense that it is not intended to be compiled or run. Instead, it is intended to describe the steps of algorithms at a high level so that they are easily understood. Following the steps in the pseudo-code, an algorithm can be implemented to programs in a straight forward way. We will use pseudo-code in some of the labs that is reminiscent of high level languages such as C/C++, Java. and Pascal. As opposed to CiC++, where group of statements are enclosed the curly brackets and " to make up a compound statement, in the pseudo-code the same is indicated via the use of indentation. Consecutive statements that begin at the same level of indentation are understood to make up a compound statement

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle 10g Database Administrator Implementation And Administration

Authors: Gavin Powell, Carol McCullough Dieter

2nd Edition

1418836656, 9781418836658

More Books

Students also viewed these Databases questions