Soda Programming Help
hi, i need help with this soda machine program. i am trying to make the program validate if there is any money or enough money is in the machine. i am also trying to give back the amount of change when the user input the money over the price of the product. Thanks in advance for the help. I am also uploading the program i have written so far.
Sam HobbsPosted Mar 17, 2011, 2:13 AM
Note that whatever you do, dk, pt and pb must be a member of Form1, not local to Form1_Load. That is probably one problem / solution you need to understand. Then in each of the button's click event you know what drink to use.
Does that help?
snounPosted Mar 16, 2011, 11:45 PM
Sam HobbsPosted Mar 16, 2011, 11:34 PM
I like that you have objects (classes). That is good. I notice that Money is derived from Product. That seems strange to me. It might be correct for the way you are doing things but based on my initial quick look I think that is strange. I will look at it more later.
snounPosted Mar 16, 2011, 10:50 PM
Sam HobbsPosted Mar 16, 2011, 10:42 PM
snounPosted Mar 16, 2011, 10:05 PM
Sam HobbsPosted Mar 16, 2011, 7:27 PM
Suthish NairPosted Mar 16, 2011, 4:04 PM