Skip to content

Latest commit

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

C++ Product Recommendation System

This project is a simple item-based product recommendation engine built in C++. It predicts which products a user may also like based on what similar users have purchased or rated. The system uses weighted scoring and a custom recommendation logic to generate relevant suggestions.

📌 How It Works

  1. User selects an item from the shopping menu.
  2. The system scans all user ratings for that item.
  3. It uses those ratings as “weights” to predict similar products.
  4. Products with the highest predicted score are recommended.

📌 Technologies Used

  • C++ (STL: map, vector, sorting, string)
  • Custom recommendation logic
  • No external libraries required

Just copy the main.cpp code and run.

📌 Sample Output

********** SHOPPING MENU **********
1. Laptop
2. Mouse
3. Keyboard
4. Monitor
5. Headphones
6. Smartphone
7. Tablet
8. Smartwatch
9. Printer
...
(25+ items)
Choose an item (1-26): 1
You selected: Laptop
Recommended items based on your choice:
- Mouse (score: 4.72)
- Headphones (score: 4.55)
- Monitor (score: 4.21)
- Desk Lamp (score: 3.89)
- SSD (score: 3.80)
- Graphics Card (score: 3.74)
- Gaming Chair (score: 3.69)
- External HDD (score: 3.60)

📌 Future Improvements

  • Add shopping cart and pricing
  • Add categories (Electronics / Mobile / Gaming)
  • Load ratings from a file instead of hardcoding
  • Convert into a full e-commerce backend project

📌 Author

Thank You ❤️.

About

C++ item-based recommendation engine

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages