Exactly. I wouldn't want anyone to get the idea that we're responding negatively. Even if one of us had *WANTED* to do the OP's homework, we couldn't. The original question was so vague as to be unanswerable. I thought Chad's answer was good, though when I read the original question, I imagined one might need an array of 5 Employee instances. But who could tell?
Speaking as someone who taught university/college/industry CS/SE for going on 30 years, I enjoy helping people do their homework. I love seeing people learn, and to the extent I can assist in that, I do. But I'm not about to replace their effort with mine...that does neither of us any good.
So, suppose you want help on your homework, or any other project? How do you get me to help?
1. If you can't figure out where to get started, you might try `There's an assignment at http://cs.somecollege.edu/cs101/asst2.pdf, and I haven't got a clue how to get started, can you suggest something?' (My answer to this: probably 3 or 4 questions that might help you figure out where to begin, such as `Are there any people, places, or things in the problem that might turn into classes?')
2. If you have some code that doesn't behave the way you expect it to, boil it down to the shortest piece of code you can, and then post it, along with `I expected it to do A, but it did B. Why?'
3. If you can't understand a class, method, or language feature, try `can you show an example of how to use Someclass#method_x properly?'
The more precise your question, the more useful the answers you'll receive.
-- vincent
···
On 2011-04-19, at 10:15, Chad Perrin wrote:
If you want more information than that, though, you're going to have to
give us more to go on, and show us that you're not just asking us to do
your homework for you (or get someone who doesn't care about the homework
to give you code, I suppose).