CS 120
Computer Science I, Fall 2016, Instructor: Jeffrey Horn
COURSE ANNOUNCEMENTS (Thursday, November 17, 2016)
- What's REALLY New:
- Not so New (Older Announcements):
- Note change in hours for CS tutor Jessica Huron,
below (from Mon. and Tu. to Wed. and Thurs.)
- A8 here.
- A7 here.
- Q5 will be in class this Thursday, Oct. 27, 2016.
Details here.
- A6 here.
- Quiz 4, on Method Calls, will be in class tomorrow, Thursday, Oct.
13, 2016. More information, including a link to the quiz example
handed out in class yesterday, is below.
- I've updated the details to A5, and added some
more explanation.
- Assignment 5 has been changed. I've decided to break
it up into smaller pieces. I will update the details later
today...
- Assignment 5 is assigned! See below
for information.
- Quiz 3 will be given at the end of class Thursday (tomorrow),
Sept. 29, 2016. See below for more info.
- Assigned A4. See below.
- Quiz 2 (while loop) will be in class on Thursday, Sept. 15, 2016.
See below for more info.
- We have now hired our own Dept. CS tutors! Jessica and
Tracy's tutoring information is below.
- Assigned a due date for A3, Graphics. Let's get it
done by Monday, Sept. 19, 2016.
- Added link to All-Campus Tutoring Center's hours for CS 120
tutoring. See below.
- Added Assignment 3, due date To-Be-Determined. See
below.
- First quiz (Q1) will be given IN CLASS this Thursday (Sept. 8,
2016). Information below.
- Added Assignment 2, due end of next week. See
below.
- Welcome to class!
- (old announcements never go completely away!)
CONTENTS
- Administrativa
- Syllabus
-
Jeff's office hours (subject to change!)
-
Tutoring:
We have our own, departmental,
expert CS tutors (for 120 and some other CS courses), named
_________.
-
TUTOR
|
EMAIL
|
HOURS |
LOCATION |
Tracy Clark |
tprestag@nmu.edu |
Monday 12:30-2:30 pm
Wednesday
12:30-2:30 pm
Thursday 12:30-2:30 pm |
JXJ 2311
(CS Lab) |
Jessica Huron |
jhuron@nmu.edu |
Wednesday 12:00-100pm,
2:00-3:00pm
Thursday 12:00-100pm,
2:00-3:00pm (was Mondays and Tuesdays) |
- JXJ 2311 is the big CS Lab more or
less below our classroom on the second floor.
- The All
Campus Tutoring Center (ACT) tutors for CS 120: click
here for their
walk-in hours
by subject.
- Homeworks & Programs
- Programming
- Tests and Quizes
LECTURE NOTES
HOMEWORKS & PROGRAMS
-
Assignment 1: "Hi World"
- Handed out:
Thursday, January 14, 2016
- Due: Tuesday,
August 30, 2016 (by end of class that day)
-
Purpose: get acquainted with our program
development
environment
- Assignment:
- Graded S/U.
- Follow instructions (in-class) to download and install BOTH the
TextPad (or TextWrangler) editor and the Java Developers' Kit (JDK) from the
internet:
- Enter in the code for "HelloWorldApp" (You can copy and paste it from
here)
- Save it, execute it, debug it, save it again.
- Modify it in your own UNIQUE way!
<
- Details on how to turn it in: Show it to me
in class!
-
Assignment
2: "Mad Libs"
-
Handed out:
Tuesday, August 30, 2016
- Due: Friday,
September 9, 2016 (emailed by midnight)
- Purpose:
- Declaring and using basic variables (String),
- using assignment statements,
- adding (i.e., concatenating) strings to form longer strings,
- using the system console for output (i.e., the terminal window),
- using a file for input, and
- commenting your code.
- Tasks:
-
(10 pts.) Comment
your class, at the top of the file, with your name, the course
information (e.g., "CS 120 Winter 2016"), assignment number, date,
and the name of this class. VIDEO (without
player)
- (10 pts.)
Create
a mad
lib of at least
eight words. (You may copy one from the web, or from a book, etc.
or make up your own!)
- (30 pts.) Read
in the words from a file named "words.txt" from the current
directory (i.e., folder).
- (30 pts.) Print
out the completed mad lib to the system console (i.e., terminal
window).
- (10 pts.) Include
a CLEAR description of each word needed as input. Put this
description in your comments at the top of your file. (For
example: //
(1) singular noun (2) adjective (3) verb, past tense (4)
proper name, feminine)
-
(10
pts.) Turn
in via email to me: "jhorn@nmu.edu." Use
the following format for your SUBJECT line: "CS
120 A2 ... (whatever else you want to say!)" so
that I can easily and accurately sort incoming submissions to my
CS120 A2 mail folder!
-
TOTAL: 100 pts.
Assignment
3: "Graphics"
-
Handed out:
Tuesday, Sept. 6, 2016
- Due: Monday, Sept. 19,
2016
- Details: Click
here.
Assignment
4: "Methods
(with re-locatable graphics)"
-
Handed out:
Tuesday, Sept. 20, 2016
- Due: Wednesday,
Sept. 28,
2016
- Details: Click
here.
Assignment
5: "Classes and Objects"
-
Handed out:
Tuesday, Oct. 4, 2016
- Due: Wednesday, Oct. 12,
2016
- Details: Click
here.
Assignment
6: "Square Pyramids and Perfect Squares"
- Handed out:
Tuesday, Oct. 18, 2016
- Due: Tuesday, Oct.
25,
2016
- Details: Click
here.
Assignment
7: "Graph Paper"
- Handed out:
Tuesday, Oct. 15, 2016
- Due: Monday,
Nov. 7,
2016
- Details: Click
here.
Assignment
8: "Interfaces"
- Handed out:
Tuesday, Nov. 8, 2016
- Due: Before
Thanksgiving break (i.e., Friday, Nov. 18,
2016)
- Details: Click
here.
Assignment
9: "Arrays"
- Handed out:
Thursday, Nov. 17, 2016
- Due: Thursday, December 1,
2016 (last day of class!)
- Details: Click
here.
PROGRAMMING
Development Environment (Program Editor)
- Platform: NMU IBM ThinkPads
-
Platform:
Apple MacBooks:
- TextWrangler:
-
Here are some instructions, borrowed from Mike Kowalczyck (alias "Dr. Kow")
- And
here are some scripts that might work with the instructions!
- Virtualbox
TESTS AND QUIZES
Some tests are open book and open notes. Some require your
notebook computer (I'll let you know ahead of time!) NONE are
"open neighbor"! (i.e., no help from others!)
- QUIZ 1:
will be in class on Thursday, Sept. 8, 2016. Open book, open
notes, and open computer! Here is a
sample Q1.
- QUIZ 2:
will be in class on
Thursday, Sept. 15, 2016. Open book, open notes, and open computer!
Here is a
sample Q2. We will go over this in class on Tuesday (Sept. 13, 2016).
-
QUIZ 3: will be in class on
Thursday, Sept. 29, 2016. Open book, open notes, but NOT open computer!
Here is the first
version, with solution, that was given in class last Thursday. We went over
this in class yesterday, Tuesday Sept. 27, and I handed back the graded
submissions in class. For those who missed last week's Q3, or
those who took it but want to try to replace it with a higher grade, you
should take the newer version tomorrow. It is a while loop quiz like
Q2 but this time without a computer, so you cannot type it in to run it to
get the answers! You'll have to run the loops in your head!
There might be infinite loops, loop counters that count DOWN, counters that
count non-linearly (e.g., doubling each time through the loop).
(BTW, if you take both versions of Q3 (last week's and this week's), I'll
take the higher of the two grades...)
-
QUIZ 4:
Method Calls: will be in class on
Thursday, Oct. 12, 2016. Open book, open notes, but NOT open computer!
Here is the sample (the actual
Q5 from Winter 2016) handed out in class on Tuesday, Oct. 11, 2016.
Our actual Q4 will be very similar (with a different method, of
course!).
-
QUIZ
5:
For-Loops, will be in class on Thursday, Oct. 27, 2016. Open
book, open notes, but NOT open computer!
Here is the sample (the actual
Q4 from Winter 2016) handed out in class on Tuesday, Oct. 25, 2016.
Our actual Q5 will be very similar (with different code, of
course!). I added the answers that we worked out in Tuesday's
class; they are on the back of the sample quiz. In addition to the
pdf file linked to here, I put some extra hardcopies in the handout
monster (the gray metal cabinet outside the NERL, 2110 JXJ).
FINAL
- COMPREHENSIVE EXAM:
- Open book, open notes, open computer.