Skip to content

techops-recsys-grad-hiring/India-gift-store-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to Gift Store!

For Windows - please refer this

This is where you can start to get familiar with the problem and what you need to run it. This codebase is used during code pairing session for JOI initiative. It's focused on identifying code smells, refactoring and testing legacy codebase while promoting conversations.

Problem Statement

A college student with a group of friends enjoys giving gifts tailored to each person's interests. He/She frequents a gift shop that offers a wide range of transaction. Could you assist him/her in calculating his/her expenditure on gifts? 5% GST gets added on total worth of products.
NOTE1:- Make sure to handle exceptions gracefully.
NOTE2:- Make sure to write modular code.
For more info refer to the problem statement document shared to you separately.

Technologies used

What you need to run it

Before the interview

Get familiar with the codebase! Make sure you have the necessary dependencies installed, and that you are able to run the tests.

Build

Note: Run the below command only when the tests are fixed.

source ./buildapp

Run Tests

Note: Initially the tests will fail. You need to fix them.

cd build
./GiftStoreAppTest
cd ..

Run the Application

To understand how this application would be used you can check the main method in the src/GiftStore.cpp. If you want to see the results, run:

cd build
./GiftStoreApp
cd ..

Existing Implementation

Application code currently has the following implementation:

  • Required Domain Models needed for the base problem statement.
  • Hard-coded list of gift items with their prices.
  • A function to calculate the total cost of gifts (stubbed to add the core logic on your own).