2.15. Stock Commission - Java

Words
100
Reading
1 min
Listen
Play
10y

Starting out with Java: From control structures through objects

Chapter 2

Programming Challenges

15. Stock commission

Kathryn bought 600 shares of stock at a price of $21.77 per share. She must pay her stockbroker a 2 percent commission for the transaction. Write a program that calculates and displays the following:

•  The amount paid for the stock alone (without the commission)

•  The amount of the commission

•  The total amount paid (for the stock plus the commission)

Gaddis, Tony (2015-05-29). Starting Out with Java: From Control Structures through Objects (6th Edition) (Page 107). Pearson. Kindle Edition.

Happy Steeming Everyone! :)

2.15. Stock Commission - Java | Ecency