Need Help Please :-(

Please help I need help with this homework.

Its about vending machines, and it should be a piece of cake to you code experts out there.

Its about vending machines. Heres the question:

It should have two classes, one for the vending machine(VM) and the other for drinks. The capacity of the VM is specified on creation. The drinks can be added after this. VM just created should have no drinks. These drinks are stored in slots and are numbered. Only these specified coins can be accepted: 10, 50 cents and 1 dollar. VM should have no coins when created. The VM should let the user know how much the VM currently has and should be displayed as e.g. $1.05. The VM should allow the user to be able to abort and the VM should refund the money if it has not given any drinks. The VM should display what coins will be used for the refund. This program should not allow runtime errors.

Please note that the answer to this should be very simple and basic as we have covered only the very basic stuff, since this is only an introductory course. The answer will be of no use to me if it isn't solved in a basic manner.

Thanks in advance. I really appreciate any assistance available as I'm afraid I'll fail the course. Whats upsetting is that we have not been prepared enough to solve such a question, yet we are being asked.

Regards,

John
[1407 byte] By [JohnSmith70] at [2007-11-20 11:45:22]
# 1 Re: Need Help Please :-(
Please note that the answer to this should be very simple and basic as we have covered only the very basic stuff, since this is only an introductory course. The answer will be of no use to me if it isn't solved in a basic manner.Sorry but we won't do your homework for you. If you have a go yourself and get stuck, ask a specific question and we'll help you solve your problem.
keang at 2007-11-10 2:13:57 >
# 2 Re: Need Help Please :-(
The answer will be of no use to me if it isn't solved in a basic manner.It will be of little use to you if someone else does it.

..I'm afraid I'll fail the course.You will fail the course if you're not prepared to make an effort yourself.

Whats upsetting is that we have not been prepared enough to solve such a question, yet we are being asked.If you feel you are underprepared, go and prepare yourself better. There is plenty of information online for free - language references, tutorials, example code, etc. In life there are good teachers and bad teachers, good courses and bad courses. I don't know which you've got, but they only provide a framework that you have to fill in for yourself.

If you don't understand something, you're welcome to ask here.

Learning results from what the student does and thinks, and only from what the student does and thinks. The teacher can advance learning only by influencing the student to learn...
H. Simon
dlorde at 2007-11-10 2:15:02 >