Shas CS Board Project Record File
Shas CS Board Project Record File
SHASWATH S
XII - E
COMPUTER SCIENCE
BONAFIDE CERTIFICATE
This is to certify that the Computer Science investigatory project on the topic
INVENTORY MANAGEMENT SYSTEM has been successfully completed
by SHASWATH S of class XII – E, Roll No: _________________ at FIITJEE
GLOBAL SCHOOL, Vengambakkam for the partial fulfillment of this project as
a part of All India Senior Secondary Certificate Examination CBSE, New Delhi
for the academic year 2024-2025.
DATE: _________________
I hereby express my heartfelt thanks to The Principal Ms. S MOHANA PRIYA who
has given me the opportunity to do the project in the school’s Computer Science
laboratory and for her constant encouragement.
I am also thankful to all my teachers and non-teaching staff for their help during my
course of study.
With heartfelt gratitude, I extend my deepest thanks to my parents for their unwavering
support and encouragement.
INDEX
1. ABSTRACT 1
3. SOURCE CODE 3
4. OUTPUT 5
6. BIBLIOGRAPHY 7
ABSTRACT
The Inventory Management System is a Python-based application designed to simplify
inventory tracking and management for small-scale businesses or personal use. It provides an
interactive menu-driven interface, enabling users to perform essential inventory operations
seamlessly. Key features of the system include:
1. Item Addition: Users can add new items to the inventory by specifying the item
name, category, quantity, and price.
2. Item Update: Existing inventory items can be updated with new quantities and
prices, ensuring accurate and up-to-date information.
3. Item Removal: Unwanted or discontinued items can be easily deleted from the
inventory.
4. Inventory View: Users can view the entire inventory in a structured format, listing all
items along with their respective categories, quantities, and prices.
5. Export to CSV: Inventory data can be exported into a CSV file for record-keeping or
integration with other applications, promoting data accessibility and backup.
The system uses Python's dictionary data structure to store inventory details dynamically
during runtime, and it leverages the csv module for data export functionality. The modular
design and user-friendly interface make the application highly adaptable for real-world
scenarios.
This project emphasizes practicality, usability, and simplicity, providing a foundation for
further enhancements, such as database integration, authentication mechanisms, or advanced
reporting features. Designed with scalability in mind, it serves as an efficient tool for
inventory management while being an excellent example of basic software engineering
principles.
1
HARDWARE AND SOFTWARE REQUIREMENT
Hardware Requirements
1. Processor: Minimum 1.6 GHz dual-core processor or higher (e.g., Intel i3 or AMD
Ryzen 3).
3. Storage: At least 100 MB of free disk space for storing the project files and inventory
CSV files.
4. Keyboard and Mouse: Essential for interacting with the menu-driven interface.
Software Requirements
1. Python Interpreter: Python 3.8 or later (ensure it is installed and configured in the
system’s PATH).
2. Libraries and Modules: Pre-installed Python libraries like csv (no external
installations required).
5. CSV Viewer: Applications like Microsoft Excel, LibreOffice Calc, or Google Sheets
to view exported CSV files.
2
SOURCE CODE
import csv
inventory = {}
def add_item():
item_name = input("Enter item name: ")
category = input("Enter category: ")
quantity = int(input("Enter quantity: "))
price = float(input("Enter price: "))
inventory[item_name] = {"category": category, "quantity":
quantity, "price": price}
print(f"Item {item_name} added successfully.")
def update_item():
item_name = input("Enter item name to update: ")
if item_name in inventory:
quantity = int(input("Enter new quantity: "))
price = float(input("Enter new price: "))
inventory[item_name]["quantity"] = quantity
inventory[item_name]["price"] = price
print(f"Item {item_name} updated successfully.")
else:
print(f"Item {item_name} not found.")
def remove_item():
item_name = input("Enter item name to remove: ")
if item_name in inventory:
del inventory[item_name]
print(f"Item {item_name} removed successfully.")
else:
print(f"Item {item_name} not found.")
def view_inventory():
if inventory:
for item, details in inventory.items():
print(f"Item: {item}, Category: {details['category']},
Quantity: {details['quantity']}, Price: {details['price']}")
else:
print("Inventory is empty.")
3
def export_to_csv():
filename = input("Enter filename (with .csv extension): ")
with open(filename, mode='a+', newline='') as file:
writer = csv.writer(file)
writer.writerow(["Item Name", "Category", "Quantity",
"Price"]) # Writing headers
for item, details in inventory.items():
writer.writerow([item, details["category"],
details["quantity"], details["price"]])
print(f"Inventory successfully exported to {filename}")
def menu():
while True:
print("\nInventory Management System")
print("1. Add Item")
print("2. Update Item")
print("3. Remove Item")
print("4. View Inventory")
print("5. Export to CSV")
print("6. Exit")
choice = input("Enter choice: ")
if choice == '1':
add_item()
elif choice == '2':
update_item()
elif choice == '3':
remove_item()
elif choice == '4':
view_inventory()
elif choice == '5':
export_to_csv()
elif choice == '6':
break
else:
print("Invalid choice. Please try again.")
menu()
4
OUTPUT
5
EXPORTED CSV FILE
6
BIBLIOGRAPHY
1. https://github.com/
2. https://towardsdatascience.com/
3. https://www.geeksforgeeks.org/
4. https://www.w3schools.com/python/