Project 1
Fall 2003
Due: Sep 15 @ 5 P.M.
4 points
% readdata -f bikes % readdata -tr bikes.train -te bikes.test % readdata -t bikes.train -T bikes.test
Make | Tires | Handle Bars | Water Bottles | Weight | Bike Type |
Trek | Knobby | Straight | 1 | 250.3 | Mountain |
Bridgestone | Treads | Straight | 2 | 200.1 | Hybrid |
Cannondale | Knobby | Curved | 0 | 222.9 | Mountain |
Nishiki | Treads | Curved | 1 | 190.3 | Hybrid |
Trek | Treads | Straight | 2 | 196.8 | Hybrid |
All of these values are correct, but your implementation should perform light checks for data integrity.
// // Name // E-mail Address // Platform: Windows, OS X, Redhat, Solaris (cssun/gusun/daruma), etc. // Development Environment: gcc, g++, java, g77, etc. // Mail Client: mailx, pine, GUMail, Netscape, Yahoo!, etc. //When you are ready to submit your program for grading, create a compressed archive of a directory containing your project and send it to me by e-mail as an attachment, as described below.
As an example, assume your net ID is ab123 your present working directory is $HOME/cosc388 which contains the directory p1. This directory, in turn, contains the files for your project.
To create such an archive, begin by creating new directory with a name following the format <netid>.p<project#>. You must use this naming convention for all projects this semester. To create the directory ab123.p1, type at the UNIX prompt (%):
% mkdir ab123.p1Copy the project files into this directory:
% cp p1/* ab123.plArchive this directory:
% tar -cf ab123.tar ab123.p1This will create the file ab123.tar, which will contain the directory ab123.p1 and its contents. You can look at its contents by typing
% tar -tf ab123.tarCompress the archive by typing
% gzip ab123.tarwhich creates the file ab123.tar.gz.
Attach this file to an e-mail with the subject "ab123.tar.gz" (no quotes).
Submit your project before 5:00 P.M. on the due date.
Once submitted, it is important to keep an electronic copy of your project on either cssun or gusun. These systems are regularly backed-up, and if we lose your project or the e-mail system breaks, then we will need to look at the modification date and time of your project to ensure that you submitted it before it was due. If you developed your code on a Windows machine, then use a secure ftp client to transfer your files or the archive to cssun or gusun.
Finally, when storing source code on university machines, it is important to set file permissions so others cannot read the file. To turn off such read/write permissions, type at the UNIX prompt chmod og-rw <file>, where <file> is the name of your source file.