Question: Java Beginner Stock Transaction Program Last month Joe purchased some stock in Acme Software, Inc. Here are the details of the purchase The number of
Stock Transaction Program 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 $32.87 per share. Joe paid his stockbroker a commission that amounted to 2% of the amount he paid for the stock. Two weeks later Joe wanted to sell the stock. The stock price now is $33.92 The commission will be 2% of the amount he receives for the stock. Write a program that 1) asks Joe how many shares he wants to sell, and then display the following information: 2) the amount of money Joe paid for the stock. 3) the amount of commission Joe paid his broker when he bought the stock. 4) the amount of commission Joe will pay his broker when selling the stock. 5) the amount of profit that Joe will make after selling his stock and pay the commissions (profit can be a negative number, which means Joe lost his money on the transaction)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
