|
Java headache problem
I am having problems with this program any help would be much appreciated:
Write a program named SellStocks that calculates the value of a stock sale. The user will be asked to enter the stock price, the number of shares to be sold, and the commission rate. The program will calculate the value of the shares by multiplying the stock price by the number of shares. It will also calculate the commission (the value of the shares multiplied by the commission rate) and the net proceeds (the value of the shares minus the commission). The following example shows what the user will see on the output command prompt.
This program calculates the net proceeds from a sale of stock.
Enter stock price: 10.125
Enter number of shares: .11
Value of shares: $111.38
Enter commission rate (as a percentage): 1.5
Commission: $1.67
Net proceeds: $109.71
I would post my program for you to decipher but at last compilation it had 31 errors so it is best to just treat it as a blank slate :0
|