A guy initially had 1 rupee. At the end of some month n, the amount of money he had was
n2 more than three times of what he had in the previous month. Write the recurrence
equation and solve it using generating function. Find the amount of he will have at the end
of 10 months.
(PYTHON) Stock Transaction Program Last month Joe purchased some stock from StockTrade. 1. Write a function(s) to allow the user to input the followings: ·The name of the stock ·Number of shares Joe bought · Stock purchase price · Stock selling price ·Broker commission 2. Write function(s) to calculate: and: · The amount of money Joe paid for the stock (number of shares bought * purchase price) · The amount of commission Joe paid his broker when he bought the...
Solve with Dynamic Programing A retailer wishes to plan the purchase of a certain item for the next five months. Suppose that the demand in these months is known and given by: MonthDemand (units) Month Demand (units) 30 10 20 30 20 The retailer orders at the beginning of each month. Initially he has no units of the item. Any units left at the end of a month will be transferred to the next month, but at a cost of...
Consider the problem of computing the power function pow(n,x) = n^x using only multiplications. The first approach is to perform x multiplications ($n \cdot n \cdot n \cdot \ldots \cdot n$, x times). Find a better, recursive algorithm to solve this problem (by better, we mean one that uses fewer than $x$ multiplications). Write down the pseudocode for this new function, and then analyze the runtime of that recursive program by first writing out the recurrence relation $T(n, x)$ that...
Consider the problem of computing the power function pow(n,x) = n^x using only multiplications. The first approach is to perform x multiplications ($n \cdot n \cdot n \cdot \ldots \cdot n$, x times). Find a better, recursive algorithm to solve this problem (by better, we mean one that uses fewer than $x$ multiplications). Write down the pseudocode for this new function, and then analyze the runtime of that recursive program by first writing out the recurrence relation $T(n, x)$ that...
MATLAB 1. The Fibonacci sequence is defined by the recurrence relation Fn = Fn-1+Fn-2 where Fo = 0 and F1 = 1. Hence F2 = 1, F3 = 2, F4 = 3, etc. In this problem you will use three different methods to compute the n-th element of the sequence. Then, you will compare the time complexity of these methods. (a) Write a recursive function called fibRec with the following declaration line begin code function nElem = fibrec (n) end...
does.google com Mr. Smith is selling roses for valentine's day. He sells each dozen for $24.95. So far this month, he has sold 93 dozens. Let x represent the number of additional dozen of roses he expect to sell for the season. Let s(x) represent the amount of money he expect to receive for the entire season's sales. Write an equation for s(x).* Your answer Solve the system of equations below for x, y, z. * -a+3b-6c 20 a+4b-c= 15...
(1 point) During the summer months Terry makes and sells necklaces on the beach. Terry notices that if he lowers the price, he can sell more necklaces, and if he raises the price than he sells fewer necklaces. The table below shows how the number n of necklaces sold in one day depends on the price p (in dollars). Price Number of necklaces sold 31 23 16 15 (a) Using least squares find a linear function (i.e., a line) of...
13/03/2017 Project on Mathematics of Finance (Chapter 5). 10. A woman is selling some land, and she will be paid a lump sum of $80,000 in 14 years. Until then, the buyer pays 9% simple interest quarterly. (a) Find the amount of each quarterly interest payment. (b) The buyer sets up a sinking fund so that enough money will be present to pay off the $80,000. The buyer wants to make semiannual payments into the sinking fund, the account pays...
1. Solve the following equations which involve cash flows. a. A student is trying to value an internship opportunity for the upcoming summer. The internship will last three months and pay her $2,111.00 at the end of each month. She will also get a “signing” bonus at the beginning of the internship for $525.00. If the student can invest this money in an account that pays 5.76% APR with monthly compounding, what is the value of her account at the...
(1 point) During the summer months Terry makes and sells necklaces on the beach. Terry notices that if he lowers the price, he can sell more necklaces, and if he raises the price than he sells fewer necklaces. The table below shows how the number n of necklaces sold in one day depends on the price p (in dollars) Price |Number of necklaces sold її 24 16 15 (a) Using least squares find a linear function (i.e., a line) of...