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.
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.
- C++14 or above
- CMake - build tool
- Googletest - unit testing framework
- C++ Compiler
- Cmake
Get familiar with the codebase! Make sure you have the necessary dependencies installed, and that you are able to run the tests.
source ./buildapp
cd build
./GiftStoreAppTest
cd ..
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 ..
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).