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

1 Upvotes

8 comments sorted by

View all comments

Show parent comment

2

u/[deleted] Dec 21 '17

One of the fun assignments I did on my first semester was a small text-based game where you had to enter what direction you wanted to go and then the "game" would tell you what happened.

That is a great idea , I'd really enjoy mixing "world building" and story telling with my code. I can already see how satisfying it will be to imagine something and then build it with code.

Let me know if you need any help in the future.

I really appreciate that. I'm just starting the journey but very excited to build projects like the ones you suggested. Have a great day and I look forward to discussing coding with you in the future!