Skip to content

Commit 2107e62

Browse files
[Challenge Description]
1 parent 674037a commit 2107e62

File tree

2 files changed

+482
-6
lines changed

2 files changed

+482
-6
lines changed

README.md

+21-6
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,34 @@ We’re rooting for you. 😁
2121
- **DO NOT** change the reviewers of your Pull Request.
2222

2323
# Requirements
24-
* Cmake installed
24+
25+
* CMake installed
26+
2527
## Instructions
26-
To run the project use basic cmake commands
27-
* `cmake . -B ./build`
28-
* `make -C ./build/ CppChallenge`
29-
* `./build/CppChallenge`
28+
To run the project use basic cmake commands
29+
30+
* `cmake . -B ./build`
31+
* `make -C ./build/ CppChallenge`
32+
* `./build/CppChallenge`
3033

3134
After set it all up, let's go to the challenge \o/
3235

3336
## Challenge
3437

35-
TODO:
38+
Given a csv input file `./input/SAT__College_Board__2010_School_Level_Results.csv` what you have to do is:
39+
40+
Create a command line application where you will:
41+
* Read the csv file and store the data in memory(data don't need to be ordered). (The read of the file can be done on a separated thread)
42+
* After reading the file we should show the user 3 options in a menu and ask for a number where:
43+
44+
1. Search by name: It will ask the user to input a string and it will search by **School Name** and show on the screen the results(results should be sorted by name). Asking if the user wants to save the results on a **csv** file where if yes ask the file name(you should store in a directory called `output`), saving it into a file and returning to menu.
45+
46+
2. Search by DBN: It will ask the user to input a string and it will search by **DBN** and show on the screen the result. The DBN is unique so you are allowed to create additional logic to optimize the search. After that return to the menu.
47+
48+
3. Exit the program.
3649

3750

51+
* It is not required, unit tests using [gtest](https://github.com/google/googletest) on the 2 search methods are a bonus!
3852

3953

54+
Happy Coding!

0 commit comments

Comments
 (0)