Find Jobs
Hire Freelancers

Write some JavaScript Code to parse data from three different files

$10-30 USD

Completed
Posted over 6 years ago

$10-30 USD

Paid on delivery
* 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 ```
Project ID: 15799634

About the project

3 proposals
Remote project
Active 6 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
Good Start Relevant Skills and Experience Check My Profile Proposed Milestones $1 USD - Start $14 USD - End
$15 USD in 1 day
4.0 (1 review)
0.4
0.4

About the client

Flag of UNITED STATES
Lynnwood, United States
5.0
12
Payment method verified
Member since Feb 11, 2014

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.