Group 13 Project Report
Group 13 Project Report
Name ID
Mst. Nusrat Jahan Farin 242002164
This lab report discusses the development and functionality of a Super Shop
Management System. The program allows the management of products in a shop,
providing features for adding, viewing, searching, updating, deleting, and purchasing
products.
Objectives/Aim
Procedure/Design
The system is designed with a simple menu-driven interface, where the user selects an
option to perform specific operations. The following steps outline the main features of
the system:
1
a. The user can purchase a product by selecting its ID and entering the
desired quantity. The system checks stock levels before allowing the
purchase.
Implementation
1. Global Variables:
a. Arrays to store product names, quantities, and prices.
b. A counter productCount to track the number of products in the
inventory.
2. Functions:
a. preloadProducts(): Initializes a few products at the beginning.
b. addProduct(): Adds a new product to the system.
c. viewProducts(): Displays a list of all products.
d. searchProduct(): Searches for a product by name.
e. updateProduct(): Allows the user to update a product's quantity or
price.
f. deleteProduct(): Deletes a product from the list.
g. purchaseProduct(): Allows the user to purchase products, checking
stock levels.
productCount++;
printf("\nProduct added successfully!\n");
}
2
Test Result/Output
Challenges:
o Handling invalid inputs for product quantities and prices was challenging.
Input validation was added to ensure only valid data is entered.
Results:
o The system works as expected, allowing users to perform all specified
operations without errors.
Lessons Learned:
o Effective handling of arrays and user input is crucial for maintaining data
integrity in the system.
o The design of a simple, menu-driven system in C is an excellent way to
simulate real-world applications like inventory management.
Summary
This Super Shop Management System was successfully developed using C. It provides
essential features for product management, including the ability to add, view, search,
update, delete, and purchase products. The system is fully functional, and future
improvements could include adding file persistence for product data.