Questions
In Assembly Code write an assembler code (Fibonacci.s) and show results The Fibonacci Sequence is a...

In Assembly Code

write an assembler code (Fibonacci.s) and show results

The Fibonacci Sequence is a series of integers. The first two numbers in the sequence are both 1; after that, each number is the sum of the preceding two numbers.

1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, ...

For example, 1+1=2, 1+2=3, 2+3=5, 3+5=8, etc.

The nth Fibonacci number is the nth number in this sequence, so for example fibonacci(1)=1, fibonacci(2)=1, fibonacci(3)=2, fibonacci(4)=3, etc. Do not use zero-based counting; fibonacci(4)is 3, not 5.

Your assignment is to write an assembler code (Fibonacci.s) that asks the user for the nth term in the Fibonacci sequence. Your program should then calculate the nth Fibonacci number and print it out.

For example, you program should produce the following outputs:

Enter Fibonacci term: 6

The 6th Fibonacci number is 8

In: Computer Science

1) Find the solution of the given initial value problem and describe the behavior of the...

1) Find the solution of the given initial value problem and describe the behavior of the solution as t → +∞

y" + 4y' + 3y = 0, y(0) = 2, y'(0) = −1.

2) Find a differential equation whose general solution is Y=c1e2t + c2e-3t

3) Determine the longest interval in which the given initial value problem is certain to have a unique twice-differentiable solution. Do not attempt to find the solution t(t − 4)y" + 3ty' + 4y = 2 = 0, y(3) = 0, y'(3) = −1.

4) Consider the ODE: y" + y' − 2y = 0. Find the fundamental set of solutions y1, y2 satisfying y1(0) = 1, y'1 (0) = 0, y2(0) = 0, y'2 (0) = 1.

In: Advanced Math

Exercise1. Write the following matrices into row echelon form.

Exercise1. Write the following matrices into row echelon form.

 

(a) A=(113222100474)">A=(1132−22100474) 

(c) C=(121457210121331578)">C=(121457210121331578) 

(b) B=(234304131)">B=(234304131) 

(d) D=(11111111111111λλ)">11111λλ⎟ ⎟ ⎟

In: Advanced Math

Hello. Please answer the following two-part question in Scheme. Not Python, not any form of C,...

Hello. Please answer the following two-part question in Scheme. Not Python, not any form of C, but in the language Scheme. If you do not know Scheme, please do not answer the question. I've had to upload it multiple times now. Thank you.

2.1 Write a recursive function called eval-poly that takes a list of numbers representing the coefficients of a polynomial and a value for ? and evaluates the polynomial for the given value of ?. The list of coefficients should start with the term of lowest degree and end with the term of highest degree. If any term of intermediate degree is missing from the polynomial it should have a coefficient of zero. For example, the polynomial ?3+4?2+2 would be represented by the list '(2 0 4 1). Hint: the polynomial above can be rewritten as 2+?⋅(0+?⋅(4+?⋅1))
> (eval-poly '() 0)

0

> (eval-poly '(5) 0)

5

> (eval-poly '(4 3) 2)

10

> (eval-poly '(2 7 1) 3)

32

2.2 Write a tail-recursive version of the previous problem called eval-poly-tail. It should call a helper function called eval-poly-tail-helper that uses tail recursion to keep a running sum of the terms evaluated so far. You might want to use the expt function to take a number to a power.
> (eval-poly-tail '() 0)

0

> (eval-poly-tail '(5) 0)

5

> (eval-poly-tail '(4 3) 2)

10

> (eval-poly-tail '(2 7 1) 3)

32

Edit: This is all the information given.

In: Computer Science

Explore the relationship between the selling price appraised value and the selling price. (Draw a scatterplot...

Explore the relationship between the selling price appraised value and the selling price.

(Draw a scatterplot and then do simple regression.)

. Draw a scatterplot first. What is the regression equation for Selling Price based on Appraised Value?

2. For which of the remaining variables is the relationship with the home's selling price Stronger?

3. Find a regression equation that takes into account ALL the variables in the data set.

4. What percent of a home's selling price is associated with all these v

House Appraised Value Selling Price (Y) Square Feet (X) Bedrooms (X) Bathrooms(X)
1 119,370 121,870 2050 4 5
2 148,930 150,250 2200 4 4
3 130,390 122,780 1590 3 3
4 135,700 144,350 1860 3 3
5 126,300 116,200 1210 2 3
6 137,080 139,490 1710 3 2
7 123,490 115,730 1670 3 3
8 150,830 140,590 1780 3 4
9 123,480 120,290 1520 4 4
10 132,050 147,250 1830 2 3
11 148,210 152,260 1700 3 3
12 139,530 144,800 1720 3 4
13 114,340 107,060 1670 3 4
14 140,040 147,470 1650 3 3
15 136,010 135,120 1610 2 1
16 140,930 140,240 1570 3 4
17 132,420 129,890 1650 4 5
18 118,300 121,140 1640 3 4
19 122,140 111,230 1420 2 3
20 149,820 145,140 2070 4 3 149,820

In: Statistics and Probability

If Wanda, the consumer, is currently purchasing 1 apple and 3 oranges, is she maximizing her utility? Why or why not?

Answer the question on the basis of the following total utility data for apples and oranges. Assume that the prices of apples are $3 and oranges are $4, and that the consumer's income is $18.

Apples Total Utility Oranges Total Utility
1 9 1 16
2 15 2 28
3 18 3 36
4 20 4 40
5 21 5 42

If Wanda, the consumer, is currently purchasing 1 apple and 3 oranges, is she maximizing her utility? Why or why not? If she is not, what combination should she purchase to maximize her utility, and explain why?

In: Economics

The data below represent a firm’s dollars spent on advertising for a sample of 4 months...

The data below represent a firm’s dollars spent on advertising for a sample of 4 months and the firm’s sales (in units sold) for those months.

month advertising expenditures (x) units sold (y)
1 $2215 543
2 $2975 664
3 $2150 538
4 $2060 575

1. What is the correct interpretation of the coefficient of determination?
2. What are expected sales if advertising spending is $3000?

3. What is the size of the error term for month 1?

4. Because the OLS method was used, what can be said about the fit of this line to the scatterplot of data?

In: Statistics and Probability

Write a Java method that removes any duplicate elements from an ArrayList of integers. The method...

Write a Java method that removes any duplicate elements from an ArrayList of integers. The method has the following header(signature):

public static void removeDuplicate(ArrayList<Integer> list)

Write a test program (with main method) that prompts the user to enter 10 integers to a list and displays the distinct integers separated by exactly one space. Here is what the input and output should look like:

     Enter ten integers: 28 4 2 4 9 8 27 1 1 9

     The distinct integers are 28 4 2 9 8 27 1

In: Computer Science

In this market, price is given by P= 24 - Q/2. Firm 1 moves first, the...

In this market, price is given by P= 24 - Q/2. Firm 1 moves first, the firm 2. The firms have the cost functions C(q)= q^2.

1. Find the marginal revenue for firm 2.

2. What is the reaciton function for firm 2?

3. Find the marginal revenue for firm 1.

4. What is the equilibrium price and quantity?

In: Economics

Valuation on a Multiplicative Binomial Lattice This problem reviews some of the main ideas of valuation...

Valuation on a Multiplicative Binomial Lattice

This problem reviews some of the main ideas of valuation on a binomial lattice and the properties of put and call options. You may wish to review the relevant lecture material and readings.

Suppose that the price of a share of KAF stock is S(0) = £120 in period 0. At the beginning of period 1, the price of a share can either move upward to S(1) = u S(0) or downward to S(1) = d S(0). Suppose that u = 4/3 = 1.333 and d = 3/4 = .75, so that S(1) = u S(0) = £160 after an up move and S(1) = d S(0) = £90 after a down move. Suppose that the probability of an up move is p = 0.5.

Similarly, suppose that, at the beginning of period 2, the share price either moves up or down by the same multiplicative factors and with the same probability (0.5) of an up move. (If the probability of an up move in a period is 0.5, then the probability of a down move in a period is also 0.5.) Hence, if the share price in period 1 is S(1), then the share price at the beginning of period 2 is either S(2) = u S(1) = 4/3 S(1) or S(2) = d S(1) = 3/4 S(1).

For simplicity, suppose that a period is a year, and let the riskless interest rate be r = .12, that is, 12% per period.

. There are three possible share prices in period 2: S(2) = 213.333, S(2) = 120, and S(2) = 67.5.

(i) How many price paths on your multiplicative binomial lattice lead to each of these prices in period 2?

(ii) What are the numerical values of the risk neutral probabilities associated with each of the possible values for the share price, S(2), in period 2? What are the numerical values of the Arrow-Debreu state prices associated with each possible value of S(2) in period 2? Briefly explain your answers.

(iii) What is the price in period 0 of a security that pays 80 pounds in period 2 if the share price in period 2 is either S(2) = 213.333 or S(2) = 67.5, and otherwise pays nothing? Explain your reasoning.

In: Statistics and Probability