
For the last couple of weeks, I've been plugging away at this program that I am making for one of my computer science classes. It's called Java Fiendz; a pun on the java programming language used to create a coffee ordering system. The program is actually really cool and has been of interest to me since the beginning. It uses multiple classes and a driver so it has kind of been a struggle for me. This is only my second programming class here at Stony Brook and with over 300 lines of code, it has been getting me very frustrated. I tend to start looking for a problem in the code and then get distracted by other code and I end up changing things that don't need to be changed. It a very complicated process that I hope to accomplish soon.
The program mimics a really coffee ordering system to a tee. First, it allows you to pick a coffee or iced coffee, a size, and either decaf or regular. It then allows you to add cream, sugar, or flavoring at different prices. Going back to the menu, you can then print out the current order you have placed. This "receipt" will show you exactly what you ordered, how much it will cost, and the total cost with sales tax. There are also options to clear the order and quit the program. What's pretty cool is that every place from McDonald's to Starbucks uses this type of system and now I am advanced enough to understand it. Hopefully in the future, I can build a real system to be implemented in such an environment.
No comments:
Post a Comment