Jackfruit Problem
Development of an E-commerce Platform with a Recommendation System
Team details
- Team no: 3
- Section F
Structure
Flow of program
This program demonstrates a simple user and product management system. It
includes functionalities to add users, add products, record browsing and
purchase history, and recommend products to users based on their
history.
-
Initialize user and product maps.
-
Add users with unique IDs. line:
add_user("Jeel", 1);
-
Add products with unique IDs and categories. line:
add_product("Laptop", 101, "Electronics");
-
Record browsing history for users. line:
add_browsing_history(1, 101);
Record purchase history for users.
line:
add_purchase_history(3, 102);
-
Recommending Products: line:
recommend_products(1);
-
Program Termination: The program terminates after recommending products to all users.
How to Run?
Use gcc runs throught the src/
directory and compiles all the .c
and .h
files.
gcc src/*.c -I./include
./a.out (OR) ./a.exe