The final program for the Computer Science course.