Find the lowest price to buy and the highest price to sell

Assignment Help Other Engineering
Reference no: EM132823199

You are asked to design an algorithm to optimize profit on a stock X. The following is how the stock has been doing for the last 10 days:

Day 1: $143;

Day 2: $122;

Day 3: $121;

Day 4: $119;

Day 5: $147;

Day 6: $170;

Day 7: $172;

Day 8: $180;

Day 9: $170;

Day 10: $161.

Your algorithm should:

Problem a) find the lowest price to buy and the highest price to sell.

Problem b) make the buying date before the selling date

Reference no: EM132823199

Questions Cloud

Discuss the elements of good user interface design : Discuss the elements of good user interface design. Include concepts like user-centered design, human-computer interface, user experience, usability
What is the maximum number of comparisons algorithm makes : What is the maximum number of comparisons your algorithm makes if the lengths of the two given lists are m and n, respectively?
Resource outside of snhu : The resource outside of SNHU would be Grammarly; it helps me make sure my delivery is correct and understanding.
Which of these statements is correct : You sold the equipment today for $82,500. Which of these statements is correct if your tax rate is 34 percent
Find the lowest price to buy and the highest price to sell : You are asked to design an algorithm to optimize profit on a stock X. Find the lowest price to buy and the highest price to sell.
Discuss how income inequality occurs in the us : Write an essay of 3-5 pages in length in which you explain and discuss how income inequality occurs in the U.S., and how it is related to poverty.
Climbing three steps from ground level : Jean, who is in a? wheelchair, requires that a ramp be built so that the office is accessible. Is this required of the? organization?
Journalizing bonds payable using the straight-line method : Jan. 2 Issued $8,000,000 of 7 percent, 10-year bonds payable at 97.00. Journalizing bonds payable using the straight-line method and capital lease transactions
What steps individuals take to protect from cyber virus : What steps can companies and individuals take to protect themselves from Cyber Virus? Provide an example of a recent attack

Reviews

Write a Review

Other Engineering Questions & Answers

  Characterization technology for nanomaterials

Calculate the reciprocal lattice of the body-centred cubic and Show that the reciprocal of the face-centred cubic (fcc) structure is itself a bcc structure.

  Calculate the gasoline savings

How much gasoline do vehicles with the following fuel efficiencies consume in one year? Calculate the gasoline savings, in gallons per year, created by the following two options. Show all your work, and draw boxes around your answers.

  Design and modelling of adsorption chromatography

Design and modelling of adsorption chromatography based on isotherm data

  Application of mechatronics engineering

Write an essay on Application of Mechatronics Engineering

  Growth chracteristics of the organism

To examine the relationship between fermenter design and operating conditions, oxygen transfer capability and microbial growth.

  Block diagram, system performance and responses

Questions based on Block Diagram, System Performance and Responses.

  Explain the difference in a technical performance measure

good understanding of Mil-Std-499 and Mil-Std-499A

  Electrode impedances

How did this procedure affect the signal observed from the electrode and the electrode impedances?

  Write a report on environmental companies

Write a report on environmental companies

  Scanning electron microscopy

Prepare a schematic diagram below of the major parts of the SEM

  Design a pumping and piping system

creating the pumping and piping system to supply cool water to the condenser

  A repulsive potential energy should be a positive one

Using the data provided on the webvista site in the file marked vdw.txt, try to develop a mathematical equation for the vdW potential we discussed in class, U(x), that best fits the data

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd