CS 1101 - A-term 16
Lab 2 - Itemizations and Simple List Processing
Tuesday/Wednesday, September 6/September 7
Preliminaries
- Sign the attendance sheet.
- If you haven't already done so, read over the assignment for Homework 2.
What you should do
-
Complete Problems 1 and 2 of Homework 2. (You should have 4 data definitions in total.)
After you finish problem 2, ask one of the lab assistants to check over your work to make sure you're on the right track. They'll be looking for data definitions where
- the data type names are capitalized,
- structs are named using the names given in the assignment,
- fields are named appropriately,
- fields are defined in the order given in the assignment description,
- a comment provides the type of each field in the struct (use of the
constructor should appear in this comment)
- an interpretation describes the information being modeled
- Complete Problem 3 of Homework 2. Afer you finish writing the templates, ask a lab assistant to check them over.
- Write test cases for Problem 4 of Homework 2 (don't write the function definition, just write the test cases).
- Write the test cases for Problem 5 of Homework 2.
Ask a lab assistant to check over your test cases.
- If you still have time left, you can develop test cases for Problems 6-8 in the homework.
What to Turn In
If you don't get through all the problems, don't worry; you may complete the remaining problems as you continue working on the homework. Today you should turn in whatever you've completed at the end of the 50-minute lab period.
Using InstructAssist,
turn in a single file containing the work you completed during the lab. The name of the project is Lab 2
. Name your file yourLastName-lab2
.