Difference between revisions of "Programming Assignments - Beginning 2"

From Computer Science
Jump to: navigation, search
(Created page with "This page contains some classic beginning programming exercises. You should first complete most of the problems in Programming Assignments - Beginning 1 before working...")
 
Line 1: Line 1:
This page contains some classic beginning programming exercises.  You should first complete most of the problems in  
+
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.
[[Programming Assignments - Beginning 1]] before working on problems on this page.
 
  
 
=Problems=
 
=Problems=

Revision as of 13:26, 1 January 2020

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