Question
c# Create a console application that lets you enter a list of daily stock prices. You can simply treat these stock prices as numbers with
c#
Create a console application that lets you enter a list of daily stock prices. You can simply treat these stock prices as numbers with decimal data types.
1.) The first stock price is the stock you've paid on the first day
2.) you will enter dailty stock prices until you've entered a negative or zero price. That is, at the end of the term, you will release the stock by seeeling that stock.
3. At the end of the app, show your profit or loss
a. That is calculated by subtratcting the initial price from the final price
b. a loss is the negative difference between the final price and the initial price
c. a profit is the positive difference between the final price and the initial price
Here are the requirements that you must satisfy.
a. Calculate the profit.
b. count the number of days that you're holding the stock
c. coun the number of days you're making a profit and the number of days you're making a loss
d. the app will give you a sell signal if you're making at least 23% of the stock price ou've paid
1 count and display the number of days you're holding the salable stock
2. however, if the price goes back to nonsaleable stock, then reset the counter to 0
in summary:
a) your profit or loss
b.) the number of days you're holding the stock
c.) the number of days you're making money
d.) the number of days you're losing money
e. ) if there's a sell signal, show the number of days you're holding the salable stock
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started