Skip to content

Instantly share code, notes, and snippets.

@ryanorsinger
Last active January 23, 2016 00:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryanorsinger/d5efb64016a3a60f0a78 to your computer and use it in GitHub Desktop.
Save ryanorsinger/d5efb64016a3a60f0a78 to your computer and use it in GitHub Desktop.
Example Sales Report to practice parsing
// Output should include:
// - total number of employees
// - total number of units sold
// - avg units sold per employee
// - Then output should share employee production, ordered from highest to lowest # of units
// * Units | Full Name | Employee Number
// * 5 Bob Boberson 2
Monthly Sales Report
Date: 03-17-2015
Office: Codeup
===================================================
Employee Number, First Name, Last Name, Sales Units
***************************************************
1, Jane, Janeway, 3
3, Tricia, Triciason, 5
4, Jeannette, Jeanson, 4
5, Charles Emmerson III, Winchester, 2
6, Chet, Chedderson, 8
7, Chaiam, Chaiamson, 12
8, Dale, Dalesinger, 1
9, Zig, Ziglar, 50
10, Henry, Kissinger, 1
11, Arthur Herbert, Fonzarelli, 23
12, Betty, Boop, 67
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment