CS 14 - Lab 6


CS 14 Homepage

First Task - Mid-Quarter Evaluations

Please fill out an anonymous review of the course. The link is available here. Please make sure you select cs14 in the "select course" drop down box. We would like you to answer the following questions, so that we can put on a better course for you:
  1. Comments for/about the instructor (Titus)
  2. Comments for/about your TA (Ilker)
  3. Comments about the in-lab exercises
  4. Comments about the programming assignments
  5. Comments about the quizzes
  6. Comments about the lecture homeworks
  7. Comments about the in-class exercises
  8. Give the first names of 6 people in the course.
  9. When did you take CS 12 / attempt CS 14 before? If you took CS 12 at another school, tell us what programming language and development platform was used, and whether it was difficult to make the transition.
  10. What grade are you hoping to earn in this course? (Please be honest, it is perfectly alright to not expect to get an A in every course which is why a D- is often a passing grade)
When you are done, show your TA the "Thank you page" and you'll be marked down for 1 point. The evaluation must be completed during lab time.

Second Task - Templatized Insertion Sort

You and your partner will be writing a templatized version of the insertion sort algorithm. You will then use your sorting function to sort arrays of ints, floats, chars, and a user defined class (obtainable here). The user defined class will consist of a first name and a last name string. Instances of the class will be sorted by last name and then by first name. You will need to overload one or more operators to accomplish the sorting of the class instances.

You will also need the print functions obtainable in print.cc. Please note that I could have used a template function instead of giving you 4 different instances of the print function, one for each type sorted. .5 extra credit points will be available for replacing the print function with a templatized print function and implementing any necessary overloaded functions to acheive this.

Point Breakdown For Lab Assignment

You may demo your program in lab or it will be graded from your electronic submission. Please show the output from main.cc to the TA if you complete the lab. The TA will also look at your code for correctness when checking out. Remember, to receive credit for this lab, you MUST turn the code in online even if you have already demoed in lab If you do not turn in your code online, you will lose points for your lab. All code must be turned in online for archival purposes.

Remeber to compile your code using the flags "-g -Wall -W -Werror -pedantic". You must use a makefile.