Last month Joe purchased some stock in Acme software , Inc. Here are the details
ID: 665363 • Letter: L
Question
Last month Joe purchased some stock in Acme software , Inc. Here are the details of the purchase :
- The number of shares that Joe purchased was 1,000.
- When joe purchased the stock he paid $45.50 per share.
- Joe paid his stockbrocker a commission that amounted to 2 % of the amounth he paid for the stock .
Two weeks later Joe sold the stock. Here are the details of share:
- The number of shares that Joe sold was 1,000.
- He sold the stock for $56.90 per share .
- He pain his stockbrocker another commission that amounted to 2 % ot the amount he recieved fot the stock.
Write a program that displays the following information:
- The amounth of money Joe paid for the stock
- The amount of commission Joe paid his brocker when he bought the stock.
- The amount that Joe sold the stock for.
- The amount of commission Joe paid his broker when he sold the stock .
- Display the amount of profit that Joe made after selling his stock and paying the two commissions to his brocker. ( if amount of profit that your program displays is a negative number, then Joe lost his money on the transaction.)
Explanation / Answer
output of the above code:
---------------------------------------------------------
Stock Transaction Program
---------------------------------------------------------
Amount paid for the stock: $32870.00
Commission paid to broker : $657.40
----------------------------------------------------------
The stock sold for: $33920.00
Commission paid to broker : $678.40
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.