Write some JavaScript Code to parse data from three different files
$10-30 USD
Terminado
Publicado hace más de 6 años
$10-30 USD
Pagado a la entrega
* Please write a program in either Javascript that:
* Assembles a collection of student records by parsing data from 3 different files.
* Displays the collection 3 times, sorted 3 different ways.
* Only use libraries, gems and packages listed below.
* Javascript - The [NodeJS API]([login to view URL]), a testing framework like [MochaJS]([login to view URL]) and a CSV library like [csv-parse]([login to view URL]).
* Please use the latest stable version of NodeJS.
* What we're looking for here is clear code and elegant object-oriented design. Please avoid imperative or functional coding style, or an overly clever solution.
## Criteria
The qualities we're looking for are:
|Criterion|Notes|
|---|---|
|**Clarity**|Is the intent of the code obvious? Are things named appropriately?|
|**Maintainability**|How flexible is the code?|
|**Testability**|Is it easy to test the code? _Please demonstrate with the appropriate degree and type of testing._|
|**Precision**|Does the code produce the expected output, as provided below?|
## Input
Please copy the data files (in the `data` folder) and include them in your solution.
* [login to view URL]
* Delimiter: `,`
* Order: `last_name`, `first_name`, `campus`, `favorite_color`, `date_of_birth`
* [login to view URL]
* Delimiter: `$`
* Order: `last_name`, `first_name`, `middle_initial`, `campus`, `date_of_birth`, `favorite_color`
* [login to view URL]
* Delimiter: `|`
* Order: `last_name`, `first_name`, `middle_initial`, `campus`, `favorite_color`, `date_of_birth`
## Output
Please display the collection in three different ways:
1. Sorted by `campus` (ascending), then by `last_name` (ascending)
2. Sorted by `date_of_birth` (ascending)
3. Sorted by `last_name` (descending)
Be certain that your solution performs all of the necessary steps to print this **exact** output:
```
Output 1:
Kirlin Mckayla Atlanta 5/29/1986 Maroon
Barrows Anika Hong Kong 5/5/1965 Spring Green
Goyette Timmothy London 10/2/1964 Pacific Blue
Nolan Rhiannon Los Angeles 10/4/1974 Vivid Tangerine
Parker Matteo Melbourne 2/14/1962 Burnt Sienna
Bednar Filomena New York City 1/24/1980 Salmon
Cummerata Elliot New York City 4/3/1947 Neon Carrot
Wilkinson Stacy New York City 1/22/1964 Shocking Pink
Bruen Rigoberto San Francisco 12/1/1962 Raw Umber
Output 2:
Cummerata Elliot New York City 4/3/1947 Neon Carrot
Parker Matteo Melbourne 2/14/1962 Burnt Sienna
Bruen Rigoberto San Francisco 12/1/1962 Raw Umber
Wilkinson Stacy New York City 1/22/1964 Shocking Pink
Goyette Timmothy London 10/2/1964 Pacific Blue
Barrows Anika Hong Kong 5/5/1965 Spring Green
Nolan Rhiannon Los Angeles 10/4/1974 Vivid Tangerine
Bednar Filomena New York City 1/24/1980 Salmon
Kirlin Mckayla Atlanta 5/29/1986 Maroon
Output 3:
Wilkinson Stacy New York City 1/22/1964 Shocking Pink
Parker Matteo Melbourne 2/14/1962 Burnt Sienna
Nolan Rhiannon Los Angeles 10/4/1974 Vivid Tangerine
Kirlin Mckayla Atlanta 5/29/1986 Maroon
Goyette Timmothy London 10/2/1964 Pacific Blue
Cummerata Elliot New York City 4/3/1947 Neon Carrot
Bruen Rigoberto San Francisco 12/1/1962 Raw Umber
Bednar Filomena New York City 1/24/1980 Salmon
Barrows Anika Hong Kong 5/5/1965 Spring Green
```