Programming Assignments - Beginning 2

From Computer Science
Revision as of 13:26, 1 January 2020 by Jkinne (talk | contribs)
Jump to: navigation, search

This page contains some classic beginning programming exercises. You should first complete most of the problems in Programming Assignments - Beginning 1 before working on problems on this page.

Problems

  1. head - read from standard input or a file and print only the first 5 lines of a file
  2. tail - read from standard input or a file and print only the last 5 lines of a file
  3. wc - read from standard input or a file and print the total number of characters, lines, and words
  4. stats - read numbers and print the smallest, largest, and average
  5. sort - read numbers, sort them (using any sorting algorithm), and print in sorted order
  6. csv1 - read a csv file and print how many rows and columns
  7. csv stats - read a csv file and print the stats (min, max, average) of one of the columns