Week 15, Thurs.: Final Exam Review, Course Evaluations
- There are no office hours or consulting hours scheduled during finals week.
- Final Exam: Wednesday, 5/15, 12:25 - 2:25 PM.
Bring your UW ID and #2 Pencils
Links: Exam Information, Topics List and see the "Content" section of the course Learn@UW page for exam rooms and sample questions.
ZACH SKANRON's Lecture Notes for CS302 Spring 2013 (Intro will be available soon)
Week 15, Tues.: Finish 9.5 - 9.6+, Final Exam Review
- Additional consulting hours have been scheduled (see Schedule).
- Program 4 is due at 10 PM on 5/10 (see Programming Assignments link). In this last assignment, you'll need to come up with your own minimally object-oriented design.
- Registering? Consider Computer Sciences: Options for Undergrads, CS Certificate, CS Major
Week 14, Thurs.: Ch. 9.5 - 9.6+, Program 4 (Pair Programming teams due before 10pm 5/3)
Week 14, Tues.: Finish Ch. 7.4 - 7.5, Program 4 (more cla's, gui and user interface)
Week 13, Thurs.: Finish Ch. 7.4 - 7.5, File Input/Output
Files, File System, File naming, Checked Exceptions, FileNotFoundException, reading from a file using a Scanner object, running another Java program from within a Java program.
- Code Samples: file_configs.txt, ReadTest.java , ReadFromFile.java
- Past Semester Examples:
- Fall 2012 Code Samples: TestArgs.txt
- TestArgs0.java , TestArgs1.java , TestArgs2.java ,
TestArgs3.java , TestArgs4.java , TestArgs5.java
- Other Code Samples: exceptions.txt, Date5Driver.java, Date5.java, Date6Driver.java, Date6.java, InvalidDateException.java
- CopyFile.java, ProcessFile1.java, temps.txt
Week 13, Tues.: Ch. 7.1 - 7.3, 9.6.2-9.6.3
P4, Command-line arguments, and implements Comparable
Week 12, Thurs.: Ch. 7.1 - 7.3, Program 3 Due tomorrow (FRIDAY)
- What is a File?
- File Output
- File Input
- More exception handling
- Code Sample: ListDir.java
Week 12, Tues.: Ch. 7.4, Exams Returned
- Exam 2 was returned in lecture and scores have been posted on Learn@UW. Regrade requests must be submitted by 4/19. Prior to requesting a regrade, compare your answers to the exam solution posted in the content area of the CS 302 Learn@UW website, then see me if you believe there was an error.
Exam 2: Thursday, 4/11, 5-7 PM.
- See Exams page for Room assignments.
- Bring your UW ID and #2 Pencils
Links: Exam Information, Topics List, and see the "Content" section of the course Learn@UW page for sample questions and last semester's exam.
Week 11, Thurs.: Exam Review
Bring a copy of sample exam if you wish to follow along with questions.
- Object Diagram (for P3): FoxAndGeeseObjectDiagram.pdf Try making your own before reviewing this partial diagram of the relationships between objects in P3.
Week 11, Tues.: Arrays of Objects Review, Exam Review
Week 10, Thurs.: Finish Ch. 8.7 - 8.11, Program 3 demo and milestones 3-5
- P3 Demo: Bug's fixed. Play Fox and Geese
- Shadow variable
- Code Samples: VotingTerminal.java
Week 10, Tues.: Continue Ch. 8.5 - 8.7
- Program 3 demo: Complete with cheating Fox
TODO: fix bug that allows Fox to skip Geese's turn sometimes.
- Instantiable classes: Party.java and Candidate.java
- A "main" class to be used as a driver or test class was not really created - but our initial code fragment uses the classes as created.)
- Code Samples: CandidateTester.java
Week 9, Thurs.: Finish Ch. 8.1 - 8.5, Start 8.6 - 8.11, Program 3 setup, milestones 1 and 2
Week 9, Tues.: Start Ch. 8.1 - 8.5
Code Samples: Student.java, Date1Driver.java, Date1.java
- Exam 1 Grade Reports were returned in lecture and scores have been posted on Learn@UW. Regrade requests must be resolved by 3/14.
- Program 1: scores have been uploaed to Learn@UW. Please confirm that we have the correct score in Learn@UW. Please report descrepances by email and include your Name, Net ID, and CS Login.
Week 8, Thurs.: Finish Ch. 6.8
Code Sample: P2 Enigma Sample Run (3 rotors without advance)
Week 8, Tues.: Read Ch. 6.8, Program 2 due, Exam 1 Returned
Exam 1 Results:
Your scantron report shows these three columns:
ITEM - the question number
KEYS - the correct answer
YOURS - your answer (if you missed this question)
- Exam 1: 3/7, 5-7 PM.
Week 7, Thurs.: Review Fall 2012 Exam
Week 7, Tues.: Finish 6.4: passing arrays to methods, Program 2 Overview, Review Exam Info/Bring Sample Questions
- Program 2 has been released. Register your p2 teams before 10pm on Mar 8th.
Week 6, Thurs.: Read Ch. 6.4 - 6.5
Week 6, Tues.: Read Ch. 5.3 - 5.7
Exercise: Convert this java program so that is uses methods: RectangleArea2.java
Week 5, Thurs.: Read Ch. 5.1 - 5.2
- more on one dimensional arrays
- intro to methods
Week 5, Tues.: Read Ch. 6.1 - 6.3
- Discussed differences between loops and several forms of incrementing variables:
count = count + 1
count += 1
DO NOT MIX AND MATCH:
For example, do not use something like this:
count += count++
- Shapes.java - Displays a diamond shape based on value in n.
Week 4, Thurs.: Finish Ch. 4
Code Output: HappyValentinesDay.output.txt
Week 4, Tues.: Continue Ch. 4, we'll also discuss Input Validation
Exercise: Write a Java code fragment that determines if a date is in the past, present, or future. You are given integer variables year (>0) and month (1-12), which you may assume will have valid values. You are also given constants YEAR and MONTH that represent the current date. First, solve the problem for the year only, then modify it to work for both the year and month.
Challenge: Assume you also have an integer variable day (1-31) and a constant DAY. Write the code fragment to work for a complete date.
Week 3, Thurs.: Finish Ch. 3, Start Ch. 4
- Random values, seed, start input validation
- Exercise: Complete your code fragment that determines how many days are in a month (e.g., February has 28). Assume month is an integer variable that has some value between 1 and 12 (i.e., January to December).
Week 3, Tues.: Continue Ch. 3 Decisions
Flow Chart to Code Fragment: flow_chart_code_fragment.png
Week 2, Thurs.: Finish Ch. 2, Start Ch. 3
- Code Sample: MyRandomNumberProgram.java.
- Previous Semester Code Samples: TootsiePop1.java , CylinderVolume.java, , RectangleArea.java
Week 2, Tues.: Continue Ch. 2
- Last day to drop without notation on transcripts is this Wed 1/30.
- Code Sample: FtoC.java. Sign up for CodeLab and see the Consultants for extra help during their posted hours
Week 1, Thurs.: Start Ch. 2
Week 1, Tues.: Read Ch. 1
- Add the Exam dates and times and other Course Information to your calendar.
- Activate your CS account.
- Read the course website to ensure you know where to find information we post.
- Read the textbook before lecture as well as familiarizing yourself with the course website.
- See the Download link if you wish to work from home.
- Enroll in Piazza to ensure you see questions and answers that other students have posted.