Hello everybody!! I was hoping to get a few pointers on the following code. I have class Sales and class Salesman. Class Salesman has attributes name and sales. I am mainly stuck because I am not sure how I should set up the switch statement in class Salesman.
I want to calculate the total sales for each salesman and the grand total of those sales. I realize the GUI is not the best, but I guess it is ok. LOL. So the user will input their name, the product they sold, and how many of that product was sold. I also put a button for the user to click when they are done entering their information and a button to indicate that all salesmen have entered their information and may be totaled.
Then it should display the total retail value of all products sold for each salesman and then the total of all sales. The final information will be printed to the text area where the salesmen names are in alphabetical order (which I haven't even began to figure out yet) and then their sales to the right of their name (one or two tabs over). Under that I will have the grand total: Total$0.00
Thanks so much for any tips or suggestions!! Much appreciated!!

[ February 18, 2006: Message edited by: Holly Leery ]