Write a function add(vals1, vals2) that takes as inputs two lists of 0 or more numbers, vals1 and vals2, and that uses recursion to construct and return a new list in which each element is the sum of the corresponding elements of vals1 and vals2. You may assume that the two lists have the same length. For example: >>> add([1, 2, 3], [3, 5, 8]) result: [4, 7, 11] Note that: The first element of the result is the sum of the first elements of the original lists (1 + 3 –> 4). The second element of the result is the sum of the second elements of the original lists (2 + 5 –> 7). The third element of the result is the sum of the third elements of the original lists (3 + 8 –> 11).
Use recursion please / also please explain your codes for better understanding.
In: Computer Science
34. You own a firm, and you want to raise $40 million to fund
an expansion. Currently, you own 100% of the firm's equity, and
the firm has no debt. To raise the $40 million solely through
equity, you will need to sell two-thirds of the firm. However,
you would prefer to maintain at least a 50% equity stake in the
firm to retain control.
a. If you borrow $15 million, what fraction of the equity will you
need to sell to raise the remaining $25 million? (Assume perfect
capital markets.)
b. What is the smallest amount you can borrow to raise the $40
million without giving up control? (Assume perfect capital
markets.)
In: Finance
| Month | May | June | July | August | September | October | November | December | January |
| Sales | 350 | 350 | 250 | 250 | 350 | 550 | 650 | 750 | 650 |
| Collections | |||||||||
| month 0: 80%*95% | |||||||||
| month -1: 15% | |||||||||
| month -2: 5% | |||||||||
| Payments | |||||||||
| Purchase - 70% of next month sales | |||||||||
| Purchase payment - 50% of current month purchase | |||||||||
| Purchase payment - 50% of last month purchase | |||||||||
| Lease payment | 10 | 10 | 10 | 10 | 10 | 10 | |||
| construction | 0 | 0 | 0 | 60 | 0 | 0 | |||
| wages | 30 | 30 | 40 | 50 | 70 | 80 | |||
| other | 5 | 5 | 5 | 5 | 5 | 5 | |||
| taxes | 0 | 0 | 30 | 0 | 0 | 50 | |||
| Net Cash Flow | |||||||||
| cumulative cash | 50 | ||||||||
| Target Cash Flow | 10 | 10 | 10 | 10 | 10 | 10 | |||
| Surplus/Shortage | |||||||||
| find out collections, month 1, month 2, purchase 70 % of next month sales, purchase payment 50% of current month purchase, purchase payment 50% of last month purchase payment, net cash flow, cumilative cash, surplus/shortage. please provide me an formulae so that i can do it in excel. |
In: Finance
In December of 1903, Wilbur and Orville Wright made history with their bi-plane contraption that managed to do the seemingly impossible: it gave man the ability to fly. The concept was so unearthly, in fact, that private aviation first took off not as a means of transportation, but as a sideshow of sorts. In those pioneer days, seeing a man use technology to overcome gravity was such a novelty that early aviators made their living mostly through exhibition flights.
Seven years after the Wright Brothers proved flight was possible, a car salesman by the name of Clyde Cessna found himself awestruck by one such exhibition in Oklahoma. He’d heard tales of men taking to the skies in these machines (and making thousands of dollars in the process), and now that he’d seen one in person he was certain: Clyde Cessna was going to build an airplane of his own.
The Cessna Aviation Company was an American general aviation aircraft manufacturing corporation headquartered in Wichita, Kansas. Cessna produced small, piston-powered aircraft, as well as business jets. For many years the company was one of the highest-volume producers of general aviation aircraft in the world. The company was founded in 1927.
The following information is available concerning a firm's capital:
Debt: 500,000 bonds with a face value of $1000 and an initial 20-year term were issued five years ago with a coupon rate of 8%. Today these bonds are selling for $846.30.
Preferred stock: 200,000 shares of preferred stock paying an annual dividend of $9.50 are outstanding. The shares currently trade at $79.16.
Common equity: Two hundred thousand shares of common stock are outstanding which are now selling for $22.50 per share. An annual dividend of $1.70 was just paid and is expected to grow indefinitely at 6%.
The combined federal and state tax rate is 40%.
Required:
Calculate the firm's WACC.
In: Accounting
A simple random sample of 50 items from a population with a standard deviation of 7, resulted in a sample mean of 38.
If required, round your answers to two decimal places.
a. Provide a 90% confidence interval for the
population mean.
b. Provide a 95% confidence interval for the
population mean.
c. Provide a 99% confidence interval for the
population mean.
In: Statistics and Probability
Language: C++
In your main(), use printf() to print out the floating point values for
some hex data.
a. To print 1.0, do
printf("One: %f\n",0x3FF0000000000000);
The compiler will give you a warning about the argument being a different
type than the format, but that is ok.
b. To print 2.0, do
printf("Two: %f\n",0x4000000000000000);
Remember, to multiply by two, you just add one to the exponent.
c. Print 4.0, 8.0, and 16.0 (with nice labels, of course).
d. We can also go the other way. To divide by two, just decreas the
exponent by one. So for 1/2, do
printf("Half: %f\n",0x3FE0000000000000);
e. Print 1/4, 1/8, 1/16.
f. Negative values have a 1 in the leading bit instead of 0. A leading 1
in the bits for a hex digit has value 8, so -1.0 is BFF0000000000000.
So to print -1.0, do
printf("Neg One: %f\n",0xBFF0000000000000);
g. Print -2, -4, -8, -1/2, -1/4, -1/8 (with nice labels, of course).In: Computer Science
In the New York State "Win 4" game, four digits are randomly drawn, with replacement. The player chooses four digits and may pick from several types of bets:
a. "Straight": To win, the player's digits must match those drawn in the order they were drawn.
b. There are four kinds of "box" bets. In each, the player wins by matching the digits drawn in any order. "24-Way Box": The player's digits are all different. "12-Way Box": The player names one digit twice. "6-Way Box": The player names two different digits twice each. "4-Way Box": The player names one digit three times and a different digit once.
Find the probability of winning each of these bets.
In: Statistics and Probability
Activity #1 - Defining a Brand Image
You may prepare this activity in the following formats: Word Document, PDF, or PowerPoint.
Phase one:
Research one of your favourite brands. Define their Why-How-What. (Note: Do your research! For example, read the brand's website for their mission statement)
Phase two:
Search for 6 images that visually define the brand. Be sure to match the look and feel with your value proposition. (Note: Do not select and use images that represent their logo and products)
Phase Three:
Choose a digital channel that would be appropriate for the brand to use for marketing and provide justification on why that channel would be appropriate for communicating their value proposition. Then provide a suggestion of what type of content they could create for that channel.
In: Operations Management
On the first day of the fiscal year, Shiller Company borrowed $85,000 by giving a seven–year, 7% installment note to Soros Bank. The note requires annual payments of $15,772, with the first payment occurring on the last day of the fiscal year. The first payment consists of interest of $5,950 and principal repayment of $9,822.
Journalize the entries to record the following:
a1. Issued the installment note for cash on the first day of the fiscal year.
a2. Paid the first annual payment on the note. For a compound transaction, if an amount box does not require an entry, leave it blank.
b. How would the nones payable be reported on the balance sheet at the end of the fiscal year?
In: Accounting
We discussed towards the end of last class (01-11-18) a Poisson problem. This an adaptation of that problem. There is evidence that suggests that one in 200 carry a defective gene that is implicated in colon cancer. In a sample of 1000 individual, a. What is the probability that none of them would have the noted defective gene? b. What is the probability that between 4 and 7 (both inclusive) will carry the defective gene? c. What is the probability that at least 8 carry the defective gene? Notes: First establish that one can use Poisson distribution model, and use Excel or web-published probability tables.
In: Statistics and Probability