Problem Based Learning 2 | Semester 2 | Java Programming
Welcome to HappyTreeShelf, a simple Java-based book shopping application with a graphical user interface built using Swing. This application allows users to browse and shop for books, add them to a shopping cart, view the cart, and check out their selections.
-
Add Books to Shopping Cart: Users can search for books by title and add them to their shopping cart. They can choose between e-books and physical copies if available.
-
View Shopping Cart: Users can view the contents of their shopping cart to see which books they have selected.
-
Remove Books from Shopping Cart: Users can remove books from their shopping cart one by one.
-
Checkout: When users are ready to complete their purchase, they can check out. The application calculates the total purchase amount based on the selected books.
-
List All Books: Users can view a list of all available books with details such as title, author, quantity, and e-book availability.
To get started with HappyTreeShelf on your local machine, follow these steps:
-
Clone the repository to your local machine:
git clone https://github.com/your-username/happytreeshelf.git
-
Open the project in your preferred Java development environment (e.g., Eclipse, IntelliJ IDEA).
-
Compile and run the Main.java file to launch the application.
Upon launching the application, you'll be greeted with a welcome message. Click "OK" to proceed.
2.Use the main menu to navigate through the application's features:
- Add books to the shopping cart.
- View the shopping cart.
- Remove books from the shopping cart.
- Checkout.
- List all available books.
- Quit the application.
3.Follow the on-screen instructions to interact with the application.
Contributions to HappyTreeShelf are welcome! If you'd like to contribute to this project, please follow these steps:
-
Fork the repository to your GitHub account.
-
Create a new branch for your feature or bug fix:
git checkout -b feature/your-feature-name
-
Make your changes and commit them:
git commit -m "Add your commit message here"
4.Push your changes to your forked repository:
git commit -m "Add your commit message here"
-
Create a pull request from your forked repository to the main project repository.
-
Wait for review and approval from the project maintainers.