Coder Social home page Coder Social logo

book-store-java's Introduction

Book Store w/ Java

Project for UNCC

Author: Andrew Praskala

Function 1 (Registering Members) finished

  1. Asking for the quantity of party
  2. Log the users in a queue
  3. I utilized the queue data structure since it is a FIFO data structure. 4. For the program it makes the most sense 5. Hence, a store
  4. The ability to create a user/client w/ an ID, name, and premium member status is all there
  5. Moreover, I allow the user to select premium membership w/ a boolean data type
  6. I then encapsulated all this via the Registration.java class 9. That is essentially where most of the client work is done
  7. Also, I log customers w/ the EnterStore class and store even more data types there 11. The goal was to never "lose track" of the user 12. Which was a major problem. 13. My program, for a while, kept returning null

Function 2 (Complete Purchase) finished

  1. Users can complete a purchase
  2. Users can add multiple items
  3. Items will be removed from the inventory after purchase
  4. I utilized a fixed array, since I was getting IndexOutOfBounds and NullPointerExceptions with lists 5. I sacrificed elegance for functionality
  5. Store.java handles most of this work

Function 3 (Item Creation) finished

  1. There is a completed set of items in a fixed array
  2. Users can buy items
  3. I was going to use enums but opted for a switch statement
  4. Inventory.java and specifically initializeItems() handles this operation

Function 4 (Banking System) unfinished

  1. Sadly, I still have bugs w/ the banking system.
  2. I do not have enough time to fix them prior to the deadline. 3. I will fix them in the future, as a personal project.
  3. But the system still runs, but some of the math is wrong. 5. When a user adds multiple items the static variable orderTotal should show the appropriate amount 6. Evidently, it is not. 7. Sometimes it works and sometimes it doesn't. 8. Basically, it only logs their initial purchase. It doesn't consider the additional purchases after the user presses "2".

Future:

  • I plan on refining this code for my resume
  • It is a good concept, just needs to be cleaned up
  • I should have started earlier on this, sadly I only spent 5 days on this project

book-store-java's People

Contributors

aprask avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.