COMP110-003, Introduction to Programming

Spring 2013

Basics

  • Instructor: Haohan Li
  • Meeting Place: SN011, Sitterson Hall
  • Meeting Time: Tuesday and Thursday, 11:00am - 12:15pm
  • E-mail: lihaohan at cs.unc.edu
  • Office: FB132, Brooks Building
  • Office Hour: Wednesday, 12:30pm - 2:30pm
  • Syllabus: here

Announcements

  • The deadline of Program 3 is extended to Sunday, March 10.
  • The office hour is changed to Wednesday, 12:30pm - 2:30pm.

Tentative Schedule

Date Lecture Topics Readings Assignments
Jan. 10, Thu Lecture 1: Introduction,
Lecture 2: Computer Basics
Chapter 1.1 & 1.2 Homework 0
Jan. 13, Sun Homework 0 DUE
Jan. 15, Tue Lecture 3: First Program Chapter 1.3, 2.1 & 2.2
Install Java and Eclipse
FirstProgram.java
Honor Pledge
Jan. 17, Thu Lab Time Creating Jar file
VendingMaching.java
TotalCost.java
Lab 1
Jan. 22, Tue Lecture 4: Primitive Types,
Strings and Console I/O
Chapter 2.3-2.5
Jan22.java
Order of Operations
StringsAndChars.java
TypeCasting.java
Honor Pledge Due
Program 1
Jan. 24, Thr Lecture 5: Java GUI
Lab Time
Chapter 1.4 & 3.1
Chapters 1 and 2 Review Worksheet
StringFun.java
Lab 1 Due
Lab 2
Jan. 29, Tue Lecture 6: Branching Statements Chapter 3.2 & 3.3
Chapters 1 and 2 Review
Worksheet Solutions

DecFormat.java
Jan. 31, Thr Lab Time
(with additional notes)
Chapter 3.4
Smiley.java
Program 1 Due
Lab 3
Program 2
Program 2 Tips
Feb. 5, Tue Lecture 7: Switch Statement
and While Statement
Chapter 4.l & 4.2
Feb. 7, Thr Lab Time
Feb. 10, Sun Lab 3 Due
Feb. 12, Tue Lecture 8: For Statement
and More Loops
input.java
Feb. 14, Thr Lab Time Strings and Loops
Review Worksheet
Lab 4
Feb. 17, Sun Program 2 Due
Feb. 19, Tue Lecture 9: Classes Chapter 5.1
Student.java
Program 3
Feb. 21, Thr Lecture 10: Review Strings and Loops
Lab Time
Strings and Loops Review
Worksheet Solutions

StringTest.java
Feb. 26, Tue Lecture 11: More Classes and
Information Encapsulation
Chapter 5.2
Feb. 28, Thr Lecture 12: Objects and References
Lab Time
SmileyClass.java
SmileyMain.java
Lab 5
Lab 4 Due
Mar. 5, Tue Lecture 13: Midterm Review Sample Midterm
Sample Midterm Solution
Lab 2 Due
Mar. 7, Thr Midterm Exam
Mar. 10, Sun Program 3 Due

Helpful Resources

Locations of visitors to this page