CS120 - Computer Science I

Instructors Lab Instructor
Bob Rinker David Buehler Al Carlson Sandeep Butapati
Section: MWF 10:30 - 11:30 MWF 11:30 - 12:30 MWF 12:30 - 1:30 Lab (various)
Office: JEB 226 BEL 211 JEB B24 JEB B30
Email: rinker@cs.uidaho.edu dbuehler@uidaho.edu ltzap@juno.com buta3083@uidaho.edu
Phone: (208)885-7378 (208)885-7263 (208)885-1004 (208)885-4611
Office Hours: 11:30-12:30 MWF,
2:00 - 3:00TTh
CSAC:
  Tuesday 3pm - 5pm
  Thursday 1pm - 3pm
CSAC:
  Tuesday and Thursday
   3 - 5 pm
CSAC:
  Monday 9:30am - 10:30am
  Wednesday 12pm - 1pm,
             4pm - 5pm
  Friday 12pm - 1pm

Please feel free to see any instructor if you have a question about the class or a problem with an assignment.


Catalog Description:
CS 120 Computer Science I (4 cr). Fundamental programming constructs, Algorithms and problem-solving, Fundamental data structures, Overview of programming languages, Virtual machines, Introduction to language translation, Declarations and types, Abstraction mechanisms, Object-oriented programming. Three lec and one 2-hr lab a wk. Prereq: Math 108 or sufficiently high ACT, SAT, or Math Placement Test score to qualify for Math 143.
Syllabus: Downloadable from here (ps or pdf).


Policy on Academic Honesty and Cheating - your continued registration in this class indicates that you understand and agree to abide by the policy.

Grading:
Your grade will be calculated using the following percentages:
Two mid-semester exams 40%
Final exam (comprehensive) 20%
Quizzes 15%
Programming assignments 25%
Total 100%

The letter grade you receive from the course will be determined as follows:
90%-100% A
89.9%-80% B
79.9%-70% C
69.9%-60% D
Below 60% F
The instructor reserves the right to adjust these percentages lower if deemed necessary.

Announcements

Welcome!! - Any announcements for the class will appear here


Assignments

Assignments will be posted here sometime after they are assigned
Number PDF PS Due date for Sections 1 & 2 Due date for Section 3 Notes, data files, etc.
#1 pdf ps Aug 30 Sep 1 -none-
#2 pdf ps Sept 7 Sep 8 -none-
#3 pdf ps Sept 13 Sep 15 -none-
#4 pdf ps Sept 20 Sep 22 Util.txt
David's computations for the example data
#5 pdf ps Sept 27 Sep 29 graphp.c File - On the sunsol systems, you can get the graphp.c file using the following command:
  $ wget http://www.cs.uidaho.edu/~cs120/graphp.c

Input File - On the sunsol systems, you can get the data file using the following command:
  $ wget http://www.cs.uidaho.edu/~cs120/HW5Data.txt

Alternate data / function

The data file and function provided for assignment #5 are somewhat boring. An alternate data file is provided below. This is an option for assignement #5, you can use either (or both) the original data file and function or the alternate data file and function (why not do both? :-)

Alternate Data File
  $ wget http://www.cs.uidaho.edu/~cs120/HW5Data2.txt

An alternative function to go along with this data file is (this is not code!):

| cos( x / 20 ) * cos( x / 5 ) |

(where the ||'s indicate absolute value, which can be computed via the fabs() function.)
Note that this function should be computed for values of x up to 32 to match the alternate data set.

#6 pdf ps Oct 11 Oct 13 -none-
#7 pdf ps Oct 18 Oct 20 Scores.txt -- Input file
#8 pdf none Oct 25 Oct 27 sample image, weight & processed files

Your program will be tested on the above link files.

#9 pdf ps Nov 1 Nov 3 Input File

Your program will be tested on the above link files.

#10 pdf ps Nov 1 Nov 3 Input File 1
Input File 2

Your program will be tested on the above link files.


Links to other useful information

Slides on how to use UNIX ( pdf or ps )
Slides on general C++ concepts and features, arithmetic ( pdf or ps )
Slides on C++ decision statements (if, switch) ( pdf or ps )
Slides on C++ looping statements (while, do-while, for) ( pdf or ps )
Slides on C++ functions ( pdf or ps )
Slides on C++ files ( pdf or ps )
Slides on C++ arrays ( pdf or ps )
Slides on C++ Two Dimensional arrays ( pdf or ps )
Slides on C++ structs ( pdf or ps )
Slides on C++ Classes ( pdf or ps )
Slides on Number Systems, Bases, 1's and 2's complement ( pdf or ps )

Slides on Floating point numbers ( pdf or ps )

How to use the checkin program ( pdf or ps )
A handout that explains a little bit about compiler errors ( pdf or ps )
A decent vi editor Cheat Sheet (pdf or ps)
Unix tutorial (from the University of Edinburgh) here.
CSAC schedule: ( here ).

Last updated Wednesday, October 27, 2004