* All Homework exercises listed here will be discussed briefly during recitation. The deadline for submission for each homework is the start of the recitation in the following week. For example, homework assigned during week 1 is to be turned in to the recitation instructor in week 2 prior to the start of the recitation.

INSTRUCTIONS FOR PROJECT TURNIN

 

Final Exam
Solutions Final Exam
Exam 1 Practice Problems Solutions
Exam 1 Practice Problems Set 2
Exam 1 Solutions
Exam 2 Practice Problems Set
Exam 2 Practice Problems Set Solutions

Denis' Centipede game
Final Exam Practice Problems Set

 

 Week

Date

Topic

Reading* / Homework problems

Project

Lab

Notes**

1

M8/22

Course: purpose, evaluation, policies, test out. What is Computer Science?

Chapter 1 [This is self reading and contains background material.]


Homework 1 [Turn in next week during your recitation.]: [1.4, 1.8, 1.10, 1.22, 2.4, 2.6.]

Click here to pdf of the homework problems.

HW1 Solutions

 

1. Login; DrJava

Creator: Long Zhen



Lecture Notes Week 1
pptx file
pdf file

Recitation Problem Set 1 [For use during recitation, not to be turned in.]
Recitation 1 Solutions

Lab Helpful Knowledge

W8/24

Problem solving and programming: sequential and concurrent.

2.1, 2.2

 

2

M8/29

 

Dissecting a Java program; Classes, objects, methods

2.3, 2.4, 2.5, 2.6, 2.7
Sun Tutorial

 

Homework 2: Turn in solutions to the following four problems next week during your recitation:[ 2.9, 2.18, 2.24, 2.26]

 

HW2 Solutions

 

2. Play with a Java program; trace execution; edit, recompile, and execute. Smart Phone, The Finch
Creator: Long Zhen

Lecture Notes Week 2
pptx file
pdf file

Recitation Problem Set 2
[For use during recitation, not to be turned in.]

In class program: Car.java

Recitation2 Solutions

W8/31

Simple types: Strings; Scanner.

3.1, 3.2; 3.3. 3.4, 3.5; 2.7
Sun Tutorial

3

M9/5

Labor Day. Class does not meet.

Homework 3: Turn in solutions to the following three problems next week during your recitation:[ 3.2, 3.5, 3.22 ]

 

HW3 Solutions

Project 1
Assigned: Monday

9/5

Creators: Long/Jaye

3. Write simple Java program that uses strings; introduce catenation and extraction of a substring.

Creator: Long Zhen

Lecture Notes Week 3
pptx file
pdf file

In class program (ComputeSale.java)

Recitation Problem Set 3 [For use during recitation, not to be turned in.]

 

Recitation3 Solutions

W9/7

Primitive types: Numeric types

3.3
Sun Tutorial

4

M9/12

Primitive types: non-numeric; type conversion; named constants.
Guest lecturer: Dr Tim Korb

Homework 4: Turn in solutions to the following problems next week during your recitation: [3.20 and 3.21; in 3.21 use Scanner instead of JOptionPane.]

HW4 Solutions

 

4. Write simple Java program that uses numeric types and operations; type conversion.

Creator: James Wilkinson

Lecture Notes Week 4
pptx file
pdf file

In class program

ConcurrentRaceCarSimulation
ConcurrentCostComputation

Recitation Problem Set 4 [For use during recitation, not to be turned in.]

Recitation 4 Solutions

W9/13

Assignments, random numbers; Concurrency revisited

 

 

5

M9/19

Conditions (if-then and if-then-else) and loops (while and for)

Homework 5

HW5 Solutions

 

Project #1
Due: Friday 9/23

5. Robot Lab 1; primtive types; concurrency.

Creator: James Wilkinson



Lecture Notes Week 5:
pptx file
pdf file
In class programs: SoundCheckApp
PulseRateMonitor
AverageRainfall

GasParticle
Recitation Problem Set 5

Recitation Problem Set 5 Solutions

W9/21

Static and instance variables;
Conditions and loops continued

 

6

M9/26

File I/O; Problem solving revisited: conditionals and loops

No homework assigned.

Project 2
Assigned: Sunday
Sept 25.

Creators: James/Jaye

In the Project2 folder Project2Writeup.pdf contains the project requirements and other information. Sample test files are input1.html, input2.html, and input3.html.

 

6. Robot Lab 2: condionals and loops; File I/O.

Creator: James Wilkinson

Lecture Notes Week 6:
pptx file
pdf file

In class programs:

[Incorrect Version]WordCountInClassCompleteVersion1

[Correct Version]WordCountInClassCompleteVersion2


CollisionDetector

CancerExample

Recitation Problem Set 6
Recitation Problem Set 6 Solutions

W9/28

File I/O continued

 

7

M 10/3

Exam 1 Monday 10/3 8-10pm.PHY 112 and 114

Review: Chapters 1, 2, 3, 4, 5

Collections of data: arrays--single dimensional; searching

 

 

7. Robot Lab 3: more conditionals and loop examples.

Creator: James Wilkinson

Lecture Notes Week 7:
pptx file
pdf file
In class programs:
Leaf Collection Programs

Recitation Problem Set 7

Recitation Problem Set 7 Solutions

W 10/5

Arrays--sorting; matrices

 

8

M 10/10

October break, class does not meet.

 

Project #2
Due: Friday 10/14


Project 3

Project 3 Code
Assigned: Friday October 14

Creators: Jaye/James

Try Checkers
CheckersRepaint
CheckersPositionTest

No Lab
No solution!

Lecture Notes Week 8:
pptx file
pdf file

Recitation Problem Set 8

In class programs:

FruitMarket
Recitation Problem Set 8
Recitation Problem Set 8 Solutions

 

W 10/12

Class does not meet in lieu of Exam 1.

Homework 6
HW6 Solutions

9

M 10/17

GUIs: frames, widgets, layouts

Homework 7
HW7 Solutions

 

8. Arrays, searching and sorting



Lecture Notes Week 9:
pptx file
pdf file

Recitation Problem Set 9
Recitation Problem Set 9 Solutions

In class and additional programs:

SimpleGui [Class version]
ButtonClick

PlusMinus

DivBy3Game
ExampleMouseListener
ExampleMouseAdapter

FlowerShop

 

W 10/19

GUIs: events and action listeners; Interfaces

 

 

10

M 10/24

Exceptions; GUIs: menus, layouts, applets;

Homework 8
HW8 Solutions

Project #3
Due: Friday 10/28

9. Applet, widgets and listeners

Creator: Jaye Franklin

Lecture Notes Week 10:
pptx file
pdf file

Recitation Problem Set 10

Recitation Problem Set 10 Solutions

MenuDemo

MenuDemoEvents

KeyListener Demo

W 10/26

Problem solving: elementary math applet

 

Project #4
Assigned: Friday October 28

Creator: Long

11

M 10/31

Classes: access, methods: parameters, inheritance; local/global variables [Changed from original plan]

No homework assigned this week. Work on Exam 2 practice problem set.

 

10. Android Lab 1: Methods, parameters

Creator: Jaye Franklin

 

Lecture Notes Week 11:
pptx file
pdf file
Recitation Problem Set 11
Recitation Problem Set 11 Solutions

 

In class and additional programs:

Concurrency:

ExpressionEvaluation

ArrayMaximumFinder
SoundImagesMenu Programs

W 11/2

Concurrency: tasks, threads; task decomposition

 

 

12

M 11/7

For exam 2: Review: Chapters 3, 4, 5, 7, 8, 9, 13, 19


Concurrency: data decomposition

Homework 9

 

11. Android Lab 2:Local/global variables; simple concurrency

Creator: Jaye Franklin


Lecture Notes Week 12:
pptx file
pdf file

ConcurrentSearch
Recitation Problem Set 12

Recitation Problem Set 12 Solutions

W 11/9

Exam 2. 8-10pm. WTHR 200

Concurrency: synchronization

Exceptions: try-catch

 

13

M 11/14

Concurrency: thread interleaving, synchronization

Homework 10

HW10 Solutions

Project #4 Due:
Friday
November 18
Project #4 Code

Project #5
Assigned: Friday November 18

Creators: Jaye/James
Try Centipede Game

12. Android Lab 3: Simple concurrent program

Creator: Jaye Franklin


Lecture Notes Week 13:
pptx file
pdf file

In class programs:

Counter (not synchronized)

Counter (synchronized)

ArraySummerRotator (not synchronized)

Recitation Problem Set 13

Recitation Problem Set 13 Solutions

InclassExamples

W 11/16

Concurrency: producer/consumer

 

14

M 11/21

Class does not meet in lieu of Exam 2. Lab and recitation sections also do not meet.

No home work assigned this week

 

No Lab
No solution!

No classes

W 11/23

Thanksgiving break; class does not meet

 

15

M 11/28

Exceptions; Recursion

Homework 11

HW11 Solutions

 

13 Classes, objects.

Creator: Jaye Franklin

Lecture Notes Week 15:
pptx file
pdf file

Recitation Problem Set 15 (For week 15)
Recitation Problem Set 15 Solutions

W 11/30

Recursion/Dynamic data structures

 

16

M 12/5

Programming competition: Three teams from Round 2 will make a presentation during the class. Students will vote to rank the three teams.

Dr Tim Korb has kindly agreed to be the chief guest and will give away the prizes.

 

Project #5
Due: [Revised]

 

Project 5 Code
Thursday 12/8
. 11:59PM.

14. Exceptions; recursion.

Lecture Notes Week 16: pdf file

pptx file

Recitation Problem Set 16 (For week 16)
Recitation Problem Set 16 Solutions

 

Denis' Centipede game

W 12/7

Review

 

17

Final Exam: Friday 12/16: 1-3pm. LAMBF101


Details on the final exam will be posted at this site a few days before the exam.

Chapters: 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 13, 14, 18, 19

 

Final exam: Open book and open notes. No xchange of notes. No use of any laptops and access to the Internet.

 

 

 

 

* Numbers refer to sections in the textbook. In addition we have provided links to tutorial pages from Sun Microsystems.

** This column will contain course related material prepared by the instructor including slides, practice January 9, 2012