Question
Stock Transaction Program Last month Hillary purchased some stock in ACME Software, Inc. Here are the details of the purchase: The number of shares that
Stock Transaction Program Last month Hillary purchased some stock in ACME Software, Inc. Here are the details of the purchase: The number of shares that Hillary purchased was1,000. When Hillary purchased the stock, she paid $32.87 per share. Hillary paid her stockbroker a commission that amounted to 2 percent of the amount she paid for the stock. Two weeks later, Hillary sold the stock. Here are the details of the sale: The number of shares that Hillary sold was 1,000. She sold the stock for $33.92 per share. She paid her stockbroker another commission that amounted to 2 percent of the amount she received for the stock. Design a program that displays the following information: The amount of money Hillary paid for the stock. The amount of commission Hillary paid her broker when she bought the stock. The amount that Hillary sold the stock for. The amount of commission Hillary paid her broker when she sold the stock. Did Hillary make money or lose money? Display the amount of profit or loss after Hillary sold the stock and paid her broker (both times). Assignment: Design and Document an Algorithm to solve this stock transactions. Submit your results on the Canvas via the folder created for this assignment.
Language : C++
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