r/programminghomework • • Nov 29 '17
Starting a vending machine program.
Hello All , I promise that I have read through stack exchange and even found sample programs but they use techniques which I haven't been introduced to. Up until now I have not used pseudo-code or UML diagrams well and I now see how much of a weakness that is for me. I don't even know where to start with this program.
It is a basic vending machine program that has products , dispenses them based on user choice , dispenses change and changes quantity of a product. Also a manager can restock product/change.
I'm just hoping someone could help me get started. I think an array of objects , where each product is an object may be the best approach since it can contain information such as price and stock but I have no idea how to get started. I know these broad questions are annoying as hell and no one has time to hold my hand through my assignment but if someone could help me just get started I think I'll be ok.
This has been so discouraging because I felt like I had some idea of what I'm doing but not being able to even begin a design for a pretty basic program from scratch has been a reality check. Thanks
View all comments
Show parent comment
2
u/[deleted] Dec 21 '17
Hi! Not at all , I really appreciate you helping me get started. I had to consult a lot of resources and doing so really improved my understanding of how encapsulation works , the interaction between classes, arrays of objects etc.
So it was very difficult but a perfect assignment as it really increased my understanding - took like 30 hours to create a pretty sub-par but functional program. My professor told me I definitely passed the class , waiting on final grades but it worked out well.
My enthusiasm for coding is growing as I become somewhat competent and I look forward to diving in . Using my time off to go through video tutorials etc. then comp-sci 2 in Spring!
Truly appreciate you and everyone else who takes the time to help others , don't know how people learned this stuff before these types of forums. Happy Holidays!