|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||||
|
|||||
|
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 |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Strange Encoder Problem | AIBob | Electrical | 3 | 02-20-2005 10:20 PM |
| Programming Problem: Extremely Frustrating | chantilly_team | Programming | 19 | 02-12-2005 11:00 PM |
| Java Books | Yan Wang | Programming | 1 | 12-27-2002 04:26 PM |
| The problem with scouting... | archiver | 2001 | 10 | 06-23-2002 11:49 PM |
| Major problem with chipphua motors | aka Scott White | Motors | 18 | 03-19-2002 07:44 PM |