fefebat
06.04.2021 •
Computers and Technology
An investor has saved some money and wants to invest in the stock market. There are a number of stocks to choose from, and they want to buy at most 1 share in any company. The total invested cannot exceed the funds available. A friend who is a stock market expert has predicted the values of each stock after 1 year. Determine the maximum profit that can be earned at the end of the year assuming the predictions come true.
Example
saving = 250
currentValue = [175, 133, 109, 210, 97]
futureValue = [200, 125, 128, 228, 133]
To maximize profits, the investor should buy stocks at indices 2 and 4 for an investment of 109 + 97 = 206. At the end of the year the stocks are sold for 128 + 133 = 261, so total profit is 261 - 206 = 55.
Solved
Show answers
More tips
- S Style and Beauty How to Braid Hair with a Plaiting Machine: Tips and Recommendations...
- B Business and Finance How to Create a Business Plan? Your Ultimate Guide...
- F Food and Cooking Deflope: What is it and how does it work?...
- F Food and Cooking Why Doesn t the Confirmation Link Come to Email?...
- F Food and Cooking How to Get Reconfirmation of Registration?...
- S Science and Technology Discovering the Anatomy of an LCD TV Screen...
- H Health and Medicine What You Need to Know About Nasal Congestion in Infants: Causes, Symptoms, and Treatment...
- A Auto and Moto What is the Average Lifespan of an Engine in a Car?...
- C Computers and Internet Make Money Online: Secrets and Essential Ways...
- A Auto and Moto How Can Parking Sensors Help Drivers?...
Answers on questions: Computers and Technology
- C Computers and Technology Abc12345678910yeetyeet...
- C Computers and Technology FREE POINTS 100not fake I have 211...
- C Computers and Technology 100 pts involved Research jobs in digital media. Using a job posting site like Indeed, Monster, Career Builder, or other sites, search for a job in your area. Once you identify...
- C Computers and Technology Consider the following Java program, which one of the following best describes setFlavor ? public class Food { static int count; private String flavor = sweet ; Food() { count++;...
- C Computers and Technology Create a Python program (hw3.py) that simulates a Mark-Sweep garbage collection algorithm. In this program, named pointers are referred to using variable names such as p, stackPtr,...
- C Computers and Technology Explain what is happening in each line of the code below: while More == Y or More == y :number = input ( enter a number: )number = int (number)Numberlist.append (number)Total...
- C Computers and Technology Write a code that: Welcome the user to the totaliserSays who the program is written byExplains the program will add two numbers togetherAsks the user for the first numberAsks...
- C Computers and Technology Max is a cybersecurity professional. His job responsibilities include creating a risk management plan and employing additional safety practices. What position does Max hold in...
- C Computers and Technology HOW DOES HE HAVE THAT MANY POINTS AND NO ANSWERS...
- C Computers and Technology Complete the following sentences taking care about the adverbs given 1- Since last week we(be) studying a lot and practicing new hints to discover the way we have to complete...
Ответ: