Programming Assignments - Beginning 2
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
- head - read from standard input or a file and print only the first 5 lines of a file
- tail - read from standard input or a file and print only the last 5 lines of a file
- wc - read from standard input or a file and print the total number of characters, lines, and words
- stats - read numbers and print the smallest, largest, and average
- sort - read numbers, sort them (using any sorting algorithm), and print in sorted order
- csv1 - read a csv file and print how many rows and columns
- csv stats - read a csv file and print the stats (min, max, average) of one of the columns