1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
djverab [1.8K]
3 years ago
13

Create your own buy and sell stock problem

Business
1 answer:
Marta_Voda [28]3 years ago
5 0

Answer:

The cost of a stock on each day is given in an array, find the max profit that you can make by buying and selling in those days. For example, if the given array is {100, 180, 260, 310, 40, 535, 695}, the maximum profit can earned by buying on day 0, selling on day 3. Again buy on day 4 and sell on day 6. If the given array of prices is sorted in decreasing order, then profit cannot be earned at all.

Explanation:

You might be interested in
Which cell address indicates the intersection of the first row and the first column in a worksheet?
Luden [163]

Answer: A1

Explanation: The columns are arranged alphabetically and the rows are ordered numerically. The cell address states the column, a letter, followed by the row, then a number.

6 0
2 years ago
Read 2 more answers
Which of the following are true about cost allocation? A. Cost allocation is a form of transfer pricing for indirect costs B. Co
zhannawk [14.2K]

Answer:

E. All of the above

Explanation:

all of the given options qualify as being true about cost allocation.

6 0
3 years ago
Both Bond Bill and Bond Ted have 6.2 percent coupons, make semiannual payments, and are priced at par value. Bond Bill has 5 yea
iragen [17]

Answer:

a-1. Percentage change in the price of Bond Bill = -8.07%

a-2. Percentage change in the price of Bond Ted = -21.12%

b-1. Percentage change in the price of Bond Bill = 8.94%

b-1. Percentage change in the price of Bond Ted = 30.77%

c. See the attached excel file for the graph.

d. It tells us that the longer the term of a bond, the greater will be its interest rate risk.

Explanation:

The price of each bond can be calculated using the following excel function:

Bond price = -PV(YTM, NPER, PMT, FV) ........... (1)

Where;

a-1. If interest rates suddenly rise by 2 percent, what is the percentage change in the price of Bond Bill?

YTM = (6.2% + 2%) / Number of semiannuals in a year = 8.2% / 2 = 4.1%

NPER = Number of semiannuals to maturity = 5 * 2 = 10

PMT = Payment = Coupon rate * Face value = (6.2% / Number of semiannuals in a year) * 1000 = (6.2% / 2) * 1000 = $31

FV = Face value = Initial price of Bond Bill = $1,000

Substituting all the values into equation (1), we have:

New price of Bond Bill = -PV(4.1%, 10, 31, 1000)

Inputting =-PV(4.1%, 10, 31, 1000) in a cell in an excel file (Note: As done in the attached excel file), we have:

New price of Bond Bill = $919.29

Percentage change in the price of Bond Bill = ((New price of Bond Bill - Initial price of Bond Bill) / Initial price of Bond Bill) * 100 = (($919.29 - $1,000) / $1,000) * 100 = -8.07%

a-2. If interest rates suddenly rise by 2 percent, what is the percentage change in the price of Bond Ted?

YTM = (6.2% + 2%) / Number of semiannuals in a year = 8.2% / 2 = 4.1%

NPER = Number of semiannuals to maturity = 25 * 2 = 50

PMT = Payment = Coupon rate * Face value = (6.2% / Number of semiannuals in a year) * 1000 = (6.2% / 2) * 1000 = $31

FV = Face value = Initial price of Bond Ted = $1,000

Substituting all the values into equation (1), we have:

New price of Bond Ted = -PV(4.1%, 50, 31, 1000)

Inputting =-PV(4.1%, 50, 31, 1000) in a cell in an excel file (Note: As done in the attached excel file), we have:

New price of Bond Ted = $788.81

Percentage change in the price of Bond Ted = ((New price of Bond Ted - Initial price of Bond Bill Ted) / Initial price of Bond Ted) * 100 = (($788.81 - $1,000) / $1,000) * 100 = -21.12%

b-1. If rates were to suddenly fall by 2 percent instead, what would the percentage change in the price of Bond Bill be then?

YTM = (6.2% - 2%) / Number of semiannuals in a year = 4.2% / 2 = 2.1%

NPER = Number of semiannuals to maturity = 5 * 2 = 10

PMT = Payment = Coupon rate * Face value = (6.2% / Number of semiannuals in a year) * 1000 = (6.2% / 2) * 1000 = $31

FV = Face value = Initial price of Bond Bill = $1,000

Substituting all the values into equation (1), we have:

New price of Bond Bill = -PV(2.1%, 10, 31, 1000)

Inputting =-PV(2.1%, 10, 31, 1000) in a cell in an excel file (Note: As done in the attached excel file), we have:

New price of Bond Bill = $1,089.36

Percentage change in the price of Bond Bill = ((New price of Bond Bill - Initial price of Bond Bill) / Initial price of Bond Bill) * 100 = (($1,089.36 - $1,000) / $1,000) * 100 = 8.94%

b-2. If rates were to suddenly fall by 2 percent instead, what would the percentage change in the price of Bond Ted be then?

rate = new YTM = (6.2% - 2%) / Number of semiannuals in a year = 4.2% / 2 = 2.1%

NPER = Number of semiannuals to maturity = 25 * 2 = 50

PMT = Payment = Coupon rate * Face value = (6.2% / Number of semiannuals in a year) * 1000 = (6.2% / 2) * 1000 = $31

FV = Face value = Initial price of Bond Ted = $1,000

Substituting all the values into equation (1), we have:

New price of Bond Ted = -PV(2.1%, 50, 31, 1000)

Inputting =-PV(2.1%, 50, 31, 1000) in a cell in an excel file (Note: As done in the attached excel file), we have:

New price of Bond Ted = $1,307.73

Percentage change in the price of Bond Ted = ((New price of Bond Ted - Initial price of Bond Bill Ted) / Initial price of Bond Ted) * 100 = (($1,307.73 - $1,000) / $1,000) * 100 = 30.77%

c. Illustrate your answers by graphing bond prices versus YTM.

Note: See the attached excel file for the graph.

d. What does this problem tell you about the interest rate risk of longer-term bonds?

It tells us that the longer the term of a bond, the greater will be its interest rate risk.

Download xlsx
6 0
2 years ago
Wegmans' excellent ________ far exceeds customer expectations, especially for a grocery store chain.
Jobisdone [24]
Produce??

Fresh meat?
3 0
2 years ago
"Scarcity, opportunity cost, and marginal analysis Neha is training for a triathlon, a timed race that combines swimming, biking
Lynna [10]

Answer: Option (3) is correct.

Explanation:

Correct option: All choices have opportunity costs.

Opportunity cost is the benefit that is foregone for an individual by choosing one alternative over other alternatives available to him.

If the opportunity cost is lower for an individual then this will benefit him whereas if the opportunity cost is higher then this will not benefit the individuals.

In our case, Neha is training for a triathlon, there are three activities involved in a triathlon and training hours are limited. If Neha wants to spend a hour on swimming then she have to sacrifice training for biking and running for during that time.

Therefore, every choice has an opportunity cost associated with it.

6 0
2 years ago
Other questions:
  • William pays his $500 premium every 6 months for automobile insurance with collision coverage. His deductible is $750. William c
    13·2 answers
  • A firm that would like to develop a global supply chain would: Manufacture components or supplies in other countries. Sell raw m
    12·1 answer
  • By the end of this year
    13·1 answer
  • Which of the following scenarios is typically an appreciating asset?
    15·1 answer
  • Which choice shows the stages of the business cycle in the correct order?
    9·2 answers
  • A stock _____ is a short combination of letters used to identify the stock of a particular company.
    7·2 answers
  • The problem with using ________ when trying to adjust for projects that are more risky or less risky than a firms average projec
    6·1 answer
  • Are good oppurtunities always spotted quickly or they often left unrecognized ?
    14·2 answers
  • Which strategy makes use of your prior knowledge to help you read and understand quickly? A. guessing from context B. previewing
    12·2 answers
  • true or false a task performed every other month has a higher initiating event frequency than a task performed every week
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!