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.
- Java
- Gradle - build tool
- JUnit - unit testing framework
Get familiar with the codebase! Make sure you have the necessary dependencies installed, and that you are able to run the tests.
gradlew.bat clean build
gradlew.bat test
To understand how this application would be used you can check the main
method in the GiftStore
class. If you want to see the results, run:
gradlew.bat clean build -x test
java -jar build/libs/joi-grad-gift-store-java.jar
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).