GithubHelp home page GithubHelp logo

minanagehsalalma / a-java-book-store-library-with-a-gui Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 106 KB

A Java Book Store Library With A GUI That allows adding and removing books , with an admin and a customer interface

a-java-book-store-library-with-a-gui's Introduction

A Java Book Store Library With A GUI

A Java Book Store Library With A GUI That allows adding and removing books , with an admin and a customer interface

The Gui Version

It's made of Five Classes :

  1. Main 2. Book 3. Customer 4. User 5. Cart The Admin password is admin123
GUIversion.mp4

The Console Version

It's made of Five Classes :

  1. Main 2. Book 3. Customer 4. User 5. Cart The Admin password is admin123
ConsoleVersion.mp4

Usage

  • Just Run The EXE file or The already Built JAR file it requires Minimum JRE version 1.8.0

OR

  • Import the Version Of the program you like , be selecting its zip file into the import option of NetBeans image

General Code Flow:

  1. The Books class represents a collection of book objects, with methods to add, remove, and search for books. Each book is represented by an instance of the Book class, which has fields for the book's ID, title, author, price, and quantity.

  2. The Cart class represents a shopping cart, with methods to add and remove books, print the contents of the cart, and search for books by ID.

  3. The Customer Creates a Cart object.

  4. The Main class is the One that runs the program. It creates a Books object, a Customer object, and a Scanner object for user input. It then loops through a menu of options that allows the user to interact with the bookstore, including printing all books, printing all books in the cart, adding a book to the cart, removing a book from the cart, and exiting the program.

  5. When the user chooses to add a book to the cart, the Customer class prompts the user to enter the ID of the book they want to add. If the book exists, it is added to the cart.

  6. When the user chooses to remove a book from the cart, the Customer class prompts the user to enter the ID of the book they want to remove. If the book exists in the cart, it is removed from the cart.

  7. When the user chooses to print all books or print all books in the cart, the corresponding method in the Books or Cart class is called to display the relevant information.

  8. When the user chooses to exit the program, the program terminates.

Overall, the program allows users to interact with a bookstore by browsing and adding books to a cart.

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.