Lectures
- Lecture 1: 132 Noland, TR: 11:00 AM - 12:15 PM
- Lecture 2: 132 Noland, TR: 1:00 PM - 2:15 PM
Instructor
- Jim Skrentny
Email: skrentny@cs.wisc.edu (include CS 302 with a descriptive subject)
Office: 5379 Computer Sciences
Office Hours: W 10:00 - 11:30 AM, R 2:30 - 4:00 PM, and by appointment
Lecture 1 and 2 Announcements
- Domestic students: Make sure to get your free voter ID card!
For more information see: UW News Article and Voter Information.
- Program 1 has been assigned. See the information about Programming Assignments, which includes the link to program 1. Get started early to avoid the busy rush near the due date.
- The first group of CodeLab exercises has been assigned. Due dates are posted in the announcement section of the CodeLab page. Note the bulk of the exercises are done in these early chapters so get started now to take maximum advantage of CodeLab for extra credit. For more information see Extra Credit.
- Exam Conflicts: Notify me by 10:00 PM on 2/10 using the CS 302 Forms if you have a conflict with any of the exam dates (see Exam Information).
- Set up Java/Eclipse your own computer. See the Software Downloads page for instructions.
- Need Help with CS 302? See the information about Lab Consultants with a link to the lab consulting hours.
Readings and Code Samples
- Week 4, Thurs.: Finish Ch. 4
- Week 4, Tues.: Continue Ch. 4, we'll also discuss the Random class and 3.6 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. 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
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).
Code Solutions: DaysInMonthCalculator1.java, DaysInMonthCalculator2.java
- Week 3, Tues.: Continue Ch. 3
Code Fragment Samples: Ball2RightP1.txt, Ball2RightP2.txt
- Week 2, Thurs.: Finish Ch. 2, Start Ch. 3
Code Sample: TootsiePop1.java
- Week 2, Tues.: Continue Ch. 2, We'll discuss setting up Eclipse/Java, and also CodeLab
Code Samples: CylinderVolume.java, RectangleArea.java
- Week 1, Thurs.: Start Ch. 2
- Week 1, Tues.: Read Ch. 1
A Course Information Sheet was handed out
Last updated: 2/9/2012 © 2010-11 Jim Skrentny (cgi by Dalibor Zelený)