Maximize the profit without spending

Assignment Help Business Management
Reference no: EM131930999

In this "investment" problem, you are given $T, which is the total amount you can invest on n different products. Product x (x is a number between 0 and n-1) has a cost, c[x] and a profit p[x]. The goal is to maximize the profit without spending more than $T.

Example: Product A B C D

Cost 24 10 10 7

Profit 24 18 18 10

If T = 24, the best investment is to spend $20 (out of $24) to buy products B and C and make $36 (18+18) in profit. The API of your program looks like this:

def invest(T, Costs, Profits):

#return a number, which is the best profit you can make.

Reference no: EM131930999

Questions Cloud

Cpus and programming : Identify the following CPUs: 1) the CPU that resides on a computer that you own or a computer that you would consider purchasing
State the means test used to address the research question : Identify the dependent variable (DV) and its Level of Measurement (Hint: it must be interval or ratio). Write the research question (RQ)
Categories of compression algorithms : Lossless and lossy are the two (2) universally known categories of compression algorithms. Compare the two (2) categories of algorithms
Write a grammar for language : a. Write a grammar for this language. b. Is CAB in this language? Explain.
Maximize the profit without spending : Product x (x is a number between 0 and n-1) has a cost, c[x] and a profit p[x]. The goal is to maximize the profit without spending more than $T.
How many different issues did you discover : In the YouTube video clips, a wide range of topics were addressed (i.e. survivor's guilt, anger issues, and the need for a helpful support system, etc.).
What is an advance directive : Sally has a right of way to cross Bob's property to get access to her own property. Which of the following statements is true?
Calculate the cost of sales in the statement : Calculate the cost of sales in the statement of profit of loss and other comprehensive income for April and the value of inventory on hand at 30 April 2017
Engage in dialogue during the mediation : If your boss (or her attorney) does decide to engage in dialogue during the mediation, what are the risks concerning information that might be disclosed?

Reviews

Write a Review

Business Management Questions & Answers

  Creating tables with microsoft access

Create an Access database with two tables using the graphical capabilities of the product (vs. SQL).  One table is called STUDENTS and has fields for Student_ID, Last_Name, First_Name, Major, DOB (i.e., date of birth), Zip_Code, and GPA.  The othe..

  Taxation system for a state tax system

Explain the pros and cons of a flat taxation system for a state tax system.

  The systems development life cycle

Phase  the systems development life cycle.

  Scores for grouped categories

For recent General Social Survey data, a prediction equation relating Y = whether attended college (1 = yes) to x = family income (thousands of dollars, using scores for grouped categories),

  Unexpected, unavoidable and overwhelming experiences

Conflicts are often unexpected, unavoidable and overwhelming experiences that each individual endures through life or through their professional working careers. In six pages students are expected to come up with a case scenario preferably fro..

  Develop a synopsis of how the time to hippa compliance

Develop a synopsis of how the time to HIPPA compliance may have affected patients, providers, third-party payers, and administrators.

  Example of second price discrimination

Give one example of second price discrimination and suggest an alternative to circumvent it if you were a consumer in this market.

  Face to face communication is worse

Has any one had an experience when face to face communication is worse than written communication. The speaker/presenter is unable to control their facial expression or body language

  Show earned value management and firm fixed price

Show Earned Value Management and Firm Fixed Price also defne what is the Contracting Officer's role in Earned Value Management

  Complete a detailed case study analysis of the given case

Complete a detailed case study analysis of the given case, using the process described in the following chapter of your course textbook.

  Interview for hiring assistant managers

Please put together a structured interview for hiring assistant managers at a large retail store. Support your answer and please conduct research to support.

  Business and society-technology influence on society

Select a specific industry (healthcare, manufacturing, financial, etc.) OR field (logistics, sales, marketing, etc.). Research and describe how technological advancements during your lifetime have changed how the industry or field operates.

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