This program is a vegetable and fruit store management system developed by a group of 5 students. It facilitates user account creation, login, purchase of vegetables, and viewing of purchase receipts.
- user_buy : Stores user purchases.
- database: Contains user information, vegetables, and fruits.
- login : Stores user login information.
- username : Stores username
- many more...
- Purpose: Creates a new user account.
- Parameters: name (Full name of the user).
- Description: Handles account creation by prompting users for a username and password.
- Purpose : Manages user sign-in functionality.
- Description: Allows existing users to log in by verifying their username and password.
- Purpose: Enables users to purchase items.
- Parameters: l (List for storing purchased items), username (User's username).
- Description: Handles the purchase process, updates stock, and manages the user's cart.
- Purpose: Lists available vegetables with their prices and stocks.
- Parameters: database (Contains vegetable data).
- Description: Prints a formatted list of available vegetables and their details.
- Purpose: Generates a receipt for the user's purchases.
- Parameters: username (User's username). Description: Prints a receipt containing the purchased items and relevant details.
- Purpose: Checks the user's login status.
- Parameters: login (Login status).
- Description: Validates the login status and prompts for sign-in if not logged in.
- Purpose: Controls the main program loop.
- Parameters: None.
- Description: Manages the user interaction flow by handling sign-in, purchasing, and exiting the program.
- Download the Python from here.
- Install Python.
- Clone Git resposiratory
gh repo clone AaronShenny/Csproject
- Change the directory to Csproject
cd Csproject
- Run the program
python3 main.py