This is a Java-based application that simulates a basic management system for a Dmart store. It allows users to add and manage products, assign cashiers, and handle customer details along with their shopping carts.
-
Dmart:
- Stores details about the Dmart branch such as address, contact info, email, and website.
- Manages the list of products, the cashier, customer, and shopping cart.
-
Product:
- Represents the details of a product, including category, name, and price.
- Associates each product with a unique
Barcode
.
-
Barcode:
- Holds the product ID and its corresponding Dmart price.
-
Customer:
- Stores customer details such as name, contact number, payment mode, bill number, and total bill amount.
-
Cashier:
- Stores details about the cashier such as name, ID, contact number, and counter number.
-
Cart:
- Represents the shopping cart which can hold multiple products and has a specified type and capacity.
-
DmartDriver:
- The main driver class where the application is executed. It demonstrates adding products, displaying details, and managing a cashier.
-
Dmart Information:
- Display Dmart details including address, contact, email, and website.
-
Product Management:
- Add products with category, name, price, barcode ID, and Dmart-specific price.
- Display product details.
-
Cashier Management:
- Add a cashier with name, ID, contact number, and counter number.
- Display cashier details.
-
Customer Management:
- Add customer details like name, contact, payment mode, bill number, and total bill.
- Ensure cashier and products are added before managing customers.
-
Cart Management:
- Add and display cart details, including type, capacity, and list of products in the cart.
- Java Development Kit (JDK): Version 8 or above.
- A Java IDE (e.g., IntelliJ IDEA, Eclipse) or a text editor like VS Code.
- Clone the repository or copy the source code into your Java project.
- Compile the program using:
javac DmartDriver.java
- Run the program using:
java DmartDriver
- Follow the prompts to add products and view details in the console.
Happy coding! 😊