This is a simple console-based shopping system for BLU Market, a fictional marketplace. The system allows administrators to manage products and buyers to purchase products. The application interacts with a SQL Server database to store and retrieve product information.
- Add a product: Add new products to the inventory.
- Modify a product: Edit the details of existing products.
- Delete a product: Remove products from the inventory.
- Buy product: Purchase products and generate a receipt.
- View products: Display all available products.
- Allows users to choose between administrator and buyer functionalities.
- Requires administrators to log in with predefined credentials.
- SQL Server: Ensure you have SQL Server installed and running. The application uses
sqlcmdto interact with the SQL Server. - Database: Create a database named
projectand a tableinventorieswith the following structure:CREATE TABLE inventories ( product_code INT PRIMARY KEY, product_name VARCHAR(100), product_price FLOAT, product_discount FLOAT );