Create your own buy and sell stock problem

Answers

Answer 1

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:


Related Questions

last week where you work you sold 356 apples and lost 24 because they expired. the store paid $0.79. what profit did the store make on apples last week ?

Answers

Answer:

$1.50 is the correct answer to the question

Explanation:

What type of financial institution is the primary source of loans for businesses?

Answers

Answer:

The answer to your question is a bank

How can you take effective notes during a classroom lecture? Check all that apply.
Write down everything I hear.
Use the Cornell method.
Listen for keywords.
Pause to take notes when needed.
Write down notes without pausing.
Sit where I can see the speaker.

Answers

Answer:

bcdf

Explanation:

A communication style is ____________________

Answers

Answer:

Communication styles are the broad ways in which people tend to communicate with others.

Explanation:

Answer:

Texting

Explanation:

Is profit the same as cash flow?

Answers

Answer:

No

Explanation:

Cash flow refers to the money that flows in and out of your business. It's income and expenses.

Profit, however, is the money you have after deducting your business expenses from overall revenue. Both are important, but cash flow is essential to keep your business running in the here and now.

Homeowners typically pay property taxes to

reduce the amount of their mortgages.
avoid having to make a down payment.
help finance state and local governments.
help finance the campaigns of politicians.

Answers

Answer:

C. help finance state and local governments.

Explanation:

Property tax payments from homeowners normally go toward funding state and municipal governments. Option (C) is hence the appropriate response.

What is meant by a Property tax?

The term "property tax" refers to an ad valorem tax on the value of a property, and its rate is typically represented as a percentage or per mille.

The governing body of the area where the property is located is in charge of imposing the tax. Depending on the context, this might refer to a municipality, a county, a federated state, or the federal government. One property may be subject to taxation by many countries.

Real estate commonly faces a property tax. Annually or during a real estate transaction, such as with real estate transfer tax, it may be levied.

Learn more about property taxes, from :
brainly.com/question/30757120

#SPJ5

When an employer takes the time to explain a mistake you have made and provides suggestions for avoiding that same mistake in the future, the employer is offering _____.

constructive criticism
verbal warning
destructive criticism
discipline

Answers

Answer:

conatructive critcism

Explanation:

they are critisming you so you can do better

Which of the following is not a required element of a contract
A Offer
B Breach
C Acceptance
D Consideration

Answers

Answer:

D

Explanation:

Consideration is unnecessary.

Considering the available options, the option that is not a required element of a contract is "Breach."

This is because for a contract to be valid and enforceable in a court of law there must be the following elements.

Offer: there must be an offer from one party to another which must be accepted. Offer can be verbal or written. The person making the offer is known as the offeror.

Acceptance: for a contract to be valid, there must also be an acceptance from the other party. Acceptance can also be verbal or written. The person accepting the offer is known as the offeree.

Consideration: this is also an essential part of a contract. A consideration Is what is given by the parties to a contract to make it enforceable. For instance, a vendor's consideration is goods or services delivered, while a purchaser's consideration is the money paid for the goods or services.

However, the breach is not part of a contract element as breach voids a contract.

Some other elements of a contract are the legality and capacity of the parties and the consideration involved.

Hence, in this case, the correct answer is option B. "Breach."

Learn more here: https://brainly.com/question/18635207

Which is NOT a type of planning used by management?
A Short-term
B Deliberate
C Strategic
D Long-term

Answers

Answer:

B Deliberate

Explanation:

Planning involves thinking ahead of events. It entails preparing beforehand for future activities.  Managers will engage in planning to ensure the business meets its objectives.

There are different types of plans. Manager can make short term or long term plans which are based on time. Strategic plans are about methodology or procedure. Deliberate is not a type of planning.

Principles that help define appropriate behavior in a business setting are?
A business ethics
B business regulations
C corporate culture
D morals

Answers

Answer:

A business ethics

Explanation:

Business ethics provide the moral principles that guide the way a business and its people conduct themselves while transacting. They are the rules that a business should follow while conducting business transactions. Through business ethics, a company is able to formulate standards that regulate employee conduct. Standards make it possible to distinguish what is acceptable or wrong when engaging with customers.

Which beat defines a service?

Answers

Answer:

A service is basically a action of helping or doing work for someone.

Explanation:

think about a piece of fruit that you recently purchased. list the natural, labor, and capital resources needed to get it to you

Answers

Answer: Typically shipping fresh fruit or shipping fresh produce involves a few different steps which can slow down productivity. For example, fruits are loaded into a corrugated box then added to a pallet, then shrink wrap is added or banding is used to keep the boxes on the pallet.

Explanation:

What is the difference between division of labour and specialisation?

Answers

Answer:

Specialization refers to an individual while division of labor is social or refers to society (the aggregation of individuals). Division of labour is the separation of the production process into different operations, from intellectual to manual, from each process in a production line, from country to country, etc.

Work and/or assignments performed in a career are _____.


A.) tasks


B.) values


C.) interests


D.) employees


(please help :D)

Answers

Answer:

b. task

Explanation:

The assignments which are actually performed in a given career is known as Tasks option(a) is correct.

What is a career?

A career in simple words we can say that it is known to be an occupation or a profession which actually undertakes for a longer period of the time which gives monetary benefits over a period of the time.

Career is usually one person choose to do because it is known to be his/her purpose of choosing a right path over a period of the time.

Therefore Option(a) is correct.

Learn more about Career here:

https://brainly.com/question/2160579

#SPJ2

Your mom gets paid on the 15th of every month, but she’s running low on cash. Your brother’s birthday is coming up on the 10th and she needs to buy him a few more gifts. Should your mom use her debit card or credit card in this situation? explain

Answers

Answer:

The mom should use the debit card and get for him what she can cause If she doesn't have enough she is going too need to pay the government the money she took out

The mother should use the debit card and get for him what she can cause if she doesn't have enough she is going to need to pay the government the money she took out.

What is a debit card?

A debit card, also known as a check card or bank card is a payment card that can be used in place of cash to make purchases. The term plastic card includes the above and as an identity document. These are similar to a credit card, but unlike a credit card, the money for the purchase must be in the cardholder's bank account at the time of purchase and is immediately transferred directly from that account to the merchant's account to pay for the purchase.

Some debit cards carry a stored value with which a payment is made, but most relay a message to the cardholder's bank to withdraw funds from the cardholder's designated bank account. In some cases, the payment card number is assigned exclusively for use on the Internet and there is no physical card.

This is referred to as a virtual card.

Learn more about debit, here:

https://brainly.com/question/12269231

#SPJ3

What is the typical education level needed for an Advertising, promotions or marketing manager position?

Question 5 options:

High school diploma only


Bachelor’s degree


Doctorate degree


No degree necessary

Answers

Answer:

Kristina look at my new question thats the new chat

Explanation:

Answer:

bachelor’s degree

Explanation:

What types of insurance is David likely to get through his employer?

David has just joined a new company. His employer offers a number of different insurance policies as one of its employee benefits. For example, his employer’s (Blank)
insurance covers prescription drugs and immunizations. David will also be receiving (blank) insurance at no cost from his employer.
1. casualty, health, life
2. automobile, disability, renters

Answers

Answer:

1. health 2. disability

Explanation:

Answer:

health & disability

Explanation:

What are cover letters also called?
Letter of appreciation
Letter of preparation
Letter of anticipation
Letter of application

Answers

Answer:

A

Explanation:

because they are good

What are stocks and mutual funds?

Answers

Answer:

Stocks are an investment in a single company, while mutual funds hold many investments — meaning potentially hundreds of stocks — in a single fund.

please help me
Part 1: Educational Costs
1. What is your top career choice?
2. Using the Occupational Outlook Handbook, what are the educational requirements for
that career? Include information about the type of degree or certification needed (if
applicable)
3. After reading the lesson, conducting your own research, and talking with family, how do
you plan to finance your future education?
4. What is the estimated cost of training or future education to achieve your career goal?
To determine this cost, research institutions you could attend and their associated costs
by visiting the College Navigator link.
5. Why is it important to think about these financial costs now?

Answers

Answer:

This is supposed to be based on your own opinion

Explanation:

If you get into a car accident, your___________ may increase because you will be considered riskier for insurance companies to cover
A. Car loan payment
B. Insurance premium
C. Taxes
D. Claims adjustment

Answers

Answer:

B. Insurance premium

Explanation:

If you get into a car accident, your Insurance premium may increase because you will be considered riskier for insurance companies to cover. Thus, option B is correct.

What are companies?

A corporation is a legal body formed by a number of people to conduct and manage a business entity, whether it be commercial or industrial. An organizational model that will work as an individual representative and not in a collective manner. 

As you already must be paying some amount of insurance premium, that premium will help you pay for the damage that has occurred this time. but still, when you next time may have a plan, they will increase the insurance premium.

After the accident, you have shifted from a lower-risk person to a higher-risk person. Therefore, option B is the correct option.

Learn more about insurance companies, here:

https://brainly.com/question/28138446

#SPJ6

Other Questions
Please edit the following sentences.1. We went to target and bought eggs cheese milk bread andPizza Rolls2. There book bags were sitting on a tabul over theirWhat is the correct way to write it? Determine the quotient of 2 over 5 divided by 3 over 4. (2 points)PLS I NEED HELP FAST PLS Because the Spanish defeated the Aztecs, ________________________.a.the Aztec capital was rebuilt as a Spanish capital.b.mining caused a reduction in the Spanish population.c.Corts was able to continue exploring down into South America.d.none of the above were results of the Aztec defeat.Please select the best answer from the choices providedABCD There are 3,785 milliliters in 1 gallon, and there are 4 quarts in 1 gallon.How many milliliters are in 3 gallons?Label your answer in mL. PLZ help me with this.Explain the challenges in developing an accurate rating system for earthquakes. Which idea does Cobb use to support his argument? Votes cast by free African Americans in the South should not be counted. The election was unfair because it counted votes cast by African Americans. The Constitution says that free African Americans are citizens. The election was unfair because Lincoln was not on the ballot in the South. i don't know this problem Is Oregon a swing or a safe state? if you make homemade knitted garments and you sell them to individuals online, what e-commerce are you participating in?is it B2B or B2C or C2C or SaaS What type of compound is disulfur dichloride?a. organic compoundb. acid (ionic compound)c. covalent compoundd. ionic compound FEMALE REPRODUCTIVE SYSTEM (SE-7) (have this done correctly for brainiest)label the image with the words below. Elsie has two bags, each containing x counters. Write an expression for the total number of counters Elsie has. Which is the simplified form of the following expression? 7x - 9y + 4x^2 - 2x + 12y A. 13x + 3y B. 11x + 21y C. 4x2 + 5x + 3y D. 4x2 + 9x + 21y And.... next?THANKS AGAIN. A popular American hamburger chain successfully entered the fast food market in India by altering the menu to include vegetarian burgers instead of burgers made with beef. This can best be described as Why did many Arab and East Africa merchants stay in Indian port cities? How did this impact Southern Asia ? whats 9x8 greer I forgot The line passing through the points (-2, 10) and (5, -11) puntos gratis que tengan un buen day de que quieres hablar Pls help ASAP will give brainlies