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

Java Beginner Java Beginner Stock Transaction Program Last month Joe purchased some stock in

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!