Lab 1: Subtask 1: Time after DaTime

DUE: at the beginning of Week 3 lab.

Now that you have had a week to think about and work on Subtask 0, this week we will take a look at some organization, style and completeness issues.

Some of you have probably realized that there could be an issue with the representation of time. While using an int could be made to work, a better solution is to make Time a data type itself, and encapsulate it. I have included a Time data type below (did any of you do something like that already?)

Some of My Code

Here is some partial code with a suggested file organization.

Your Job

Copy my files to your account (I would suggest that you create a new directory for these). You can use the "Save Link" feature of your browser to do this, but then you would need to transfer the files to wiliki. As an alternate, you can run a command like the following on wiliki:

       wget http://ee.hawaii.edu/~tep/EE205/Labs/Lab1/Code/common.h

to transfer the file to the current directory.

Since we are now in teams, you will do this subtask as a team in your assigned team. Your task is to complete the implementation and testing of these data types. You can (should) use the algorithms and pieces of code you developed over the last week from your ad-hoc teams.

Things to THINK about

Your team can demo your code to me at the end of the lab session today, or the beginning of lab next week.