Skip to content

lowdavid/sort-names

Repository files navigation

sort-names

Programming Exercise for GlobalX

Requirements

Write .NET console app that;

  • Takes as a parameter a string that represents a text file containing a list of names.
  • Orders the names by last name followed by first name.
  • Creates a new text file called -sorted.txt with the list of sorted names.

For example, if the input file contains:

BAKER, THEODORE
SMITH, ANDREW
KENT, MADISON
SMITH, FREDRICK

Then the output file would be:

BAKER, THEODORE
KENT, MADISON
SMITH, ANDREW
SMITH, FREDRICK

Example of console execution:

sort-names c:\names.txt
BAKER, THEODORE
KENT, MADISON
SMITH, ANDREW
SMITH, FREDRICK
Finished: created names-sorted.txt

Notes

About

coding exercise for GlobalX

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages