Campbell Ritchie wrote:
For better to give the sales person class a proper toString method then you can simply writeDylan Stout wrote: . . .
System.out.println(grab);
What a strange name to use, grab.
1. There is no reason to leave them as they are at the moment. You need to fix them.Mona Stout wrote:I will leave the percent and targetsales as is for now. (if that is okay)
... I will leave the percent and targetsales as is for now. (if that is okay)
I am on information overload as it is with ya'll teaching me things that have not been covered in my book
is the motto here. I have taken everything that you have told me and tried to understand stayed up until 12:30 -1 am when I have to get up at 4:30am to go to work and you make fun of me for saying that it is a bit overwhelming. Instead of doing that it would have been nice if you would have taken line at a time and explained what was wrong, why it was wrong, and how to improve it. I have read dozens of articles trying to understand your higher level knowledge base and was just trying to ask you to keep it on a simpler level. Thank youA friendly place for programming greenhorns!
Mona Stout wrote:This is now the error I am getting since I changed to the below example; Error "cannot find symbol, symbol: variable empName" this error is the same on all of the names now.
How do I fix this error?
Mona Stout wrote:Thank you, after I added
[CODE DELETED]
that took away the error. I had it originally, but must have deleted it.
Mona Stout wrote:Please do you have any suggestions?
"The application will now compare the total annual compensation of at least two salespersons.
It will calculate the additional amount of sales that each salesperson must achieve to match or exceed the higher of the two earners. In the array"
Mona Stout wrote:It works and has no errors, but I do not know how to work in the final requirements which are;
"The application will now compare the total annual compensation of at least two salespersons.
It will calculate the additional amount of sales that each salesperson must achieve to match or exceed the higher of the two earners. In the array"
Mona Stout wrote:Campbell Ritchie - Thank you. The information that you and Liutauras Vilda gave me was very helpful though at this time I may not understand all of it. I am working on it and will be practicing. One thing I have noticed is that everyone codes differently and I think that you would be terrified at how it is being taught in some classes such as mine. I truly appreciate all the time and effort you spent helping me try and learn a better form of coding. I will keep you posted. I will to ask more questions, post new code, and get frustrated all over again. I am not giving up.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Consider Paul's rocket mass heater. |