Student
Web Pages
amoyston
arobbin
dthompso
eabouels
ebogner
gantkowi
iberry
hwald
jchejade
jchew
jclamage
jnissly
jssawyer
kchernov
lbomback
nahmed
rbucknor
rlawrenc
rmoriyam
snaik
sramaswa
sross
Example
Applets from Lectures
|
Bryn
Mawr College
CS 110: Introduction to Computer Science
Spring 2002
Course Materials
General
Information
Instructor:
Deepak Kumar, 248 Park Hall, 526-7485
E-Mail: dkumar@brynmawr.edu
WWW: http://mainline.brynmawr.edu/~dkumar
Lecture
Hours: Tuesdays & Thursdays, 2:30 p.m. to 4:00 p.m.
Room: 338 Park Science Building
Laboratory
Assistants:
- Ioana
Butoi (ibutoi@brynmawr.edu): Tu-Th 9:00 a.m. to 11:00 a.m. in
the Computing Center (Guild Hall)
- Catherine
Chiu (cchiu@brynmawr.edu): Mon-Wed 2:00 p.m. to 4:00 p.m. in the
Computing Center (Guild Hall)
- Jacqueline
Leung (jleung@brynmawr.edu): Mon 4:00 p.m. to 6:00 p.m. and Fri
12:00 noon to 2:00 p.m. (Guild Hall)
- Ananya Misra
(amisra@brynmawr.edu): Tu 6 p.m. to 8:00 p.m. in Guild Hall and Wed
6 p.m. to 8 p.m. in Room 232 Park
Laboratories:
- CS
Mac Bay, Guild Hall (Computing Center)
- Chemistry/Computer
Science Lab, Room 232 Park Science Building
Texts
& Software
- Java
for Students, Third Edition, by Douglas Bell and Mike Parr, Prentice
Hall, 2002.
- Java:
Getting Wired: A Laboratory Manual for Introduction to Computer Science,
by Bryn Mawr College, Spring 2002 Edition.
- CodeWarrior
Pro 6 (or later) for Macintosh, Software by Metrowerks, 2001.
This software is installed in all the Laboratories mentioned above.
Important
Dates
January
22: First lecture
February 26: Exam 1
April 2: Exam 2
April 30: Last lecture
May 2: Exam 3
Programming
Projects & Homework
Homework#1:
Create your own home page and post it on the web. Bryn Mawr
students can request a web account by clicking
here. Bryn Mawr's guidelines for personal home pages is posted
here. Haverford students can request one by clicking
here. To get credit, post your home page, send e-mail to dkumar@brynmawr.edu
with your URL latest by Monday, January 28.
Project#1
is assigned (Due on Tuesday, February 5): Click
here for details.
Project#2 is assigned (Due on Thursday, February 14): Click
here for details.
Homework#2 (Due on Tuesday, Feb 19 by 2:30 p.m): Write your own
version of the growing shrinking person applet and post it on your web
page. No need to submit anything, just send Deepak an e-mail when you
are finished. Feel free to modify the drawing(s).
Project#3
is assigned (Due on Tuesday, March 26): Click
here for details.
Project#4
is assigned (Due on Tuesday, April 9): Click
here for details.
Project#5 is assigned (Due on Thursday, April 30): Click
here for details.
Lectures
- Week
1
Tuesday, January 22: First class Meeting. What is computer science?
Elements of programming: data, sequencing, selection, repetition,
methods. Object-Oriented Programming: objects, classes, inheritance.
Java and the world wide web.
Read: Chapter 1 from Bell & Parr. Appendix C from Bell
& Parr. Chapter 4 from the Lab Manual.
Thursday, January 24: Introduction to the Web, HTML, and web aothoring
programs.
Weekly Homework: Create your own home page and post it on the
web. Bryn Mawr students can request a web account by clicking
here. Bryn Mawr's guidelines for personal home pages is
posted here.
Haverford students can request one by clicking
here. To get credit, post your home page, send e-mail to dkumar@brynmawr.edu
with your URL latest by Monday, January 28.
- Week
2
Tuesday, January 29: A quick introduction to Dreamweaver. Introduction
to Java: programming. sequence, selection, repetition, methods, objects,
classes. Code Warrior: First Look.
Read: Chapters 2 & 3 from Bell & Parr. Chapters 1-3 from
the Lab Manual.
Thursday, January 31: Applet basics. Introductory graphics: drawing
commands.
Project#1 is assigned (Due on Tuesday, February 5): Click
here for details.
- Week
3
Tuesday February 5: Variables and calculations. Pie
Chart applet: Version 1.
Read: Chapters 4 & 5 from Bell & Parr. Chapters 7 and
8 from Lab Manual.
Thursday, February 7: Methods in Java. Version
2 of the Pie Chart program.
Project#2 is assigned (Due on Thursday, February 14): Click
here for details.
- Week
4
Tuesday, February 12: More on methods in Java. The
Person applet using methods. Event-driven programming. Introduction
to sliders. The
Test Slider applet.
Read: Chapter 6 from Bell & Parr.
Thursday February, 14: Using sliders interactively. Colors in
Java. Writing a color picker applet. The
person applet (version 2), The
color swatch applet.
Read: Chapters 11 & 13 from the Lab Manual.
Homework#2 (Due on Tuesday, Feb 19 by 2:30 p.m): Write your own
version of the growing shrinking person applet and post it on your
web page. No need to submit anything, just send Deepak an e-mail when
you are finished. Feel free to modify the drawing(s).
- Week
5
Tuesday, February 19: Selection: If and switch statements.
Read: Chapter 7 from Bell & Parr. Chapters 10, 15, and 16
from the Lab Manual.
Thursday, February 21: Buttons in GUI's. Generating Random numbers.Example
applet: Using a button to draw a random dot.
- Week
6
Tuesday, February 26: Exam 1 is today.
Thursday, February 28: No Class today.
- Week
7
Tuesday, March 5: Quick Review. Text fields in GUI's. Containers,
panels, and layout managers.
Read: Chapter 17 from Bell & Parr. Also, Chapters 13 to 18
from Lab Manual.
Project#3 is assigned (Due on Tuesday, March 26): Click
here for details.
Thursday, March 7: Review of Exam 1. Using Panels to design interfaces.
- Week
8
No Classes this week. Spring Break!!
- Week
9
Project#3 deadline is extended to March 26.
Tuesday, March 19: The Car
Loan calculator applet: Designing user interfaces, doing computations,
using methods, declaring variables, etc. An exercise on good applet
design (plus a post spring break review).
Thursday, March 21: Loops in Java: while, do, for-loops. Writing
iterative programs. The
Prime Classes Applet.
Read: Chapter 8 from Bell & Parr
- Week
10
Tuesday, March 26: Designing applets. Computations using loops.
The
random dots applet. The Days
applet.
Project#4 is assigned (Due on Tuesday, April 9): Click
here for details.
Thursday, March 28: More on designing applets.
- Week
11
Tuesday, April 2: Exam 2 is today.
Thursday, April 4: Arrays in Java.
Read: Chapter 13 from Bell & Parr.
- Week
12
Tuesday, April 9: Arrays in Java. Passing arrays as parameters.
Writing simple array processing operations: compute the smallest/largest
element of an array, mean of a set of data stored in the array, etc.
Wednesday, April 10: Ananya's TA hours for
today will be from 4 to 6 p.m.
Thursday, April 11: Strings in Java. The
palindrome applet.
Read: Chapter 15 from Bell & Parr.
Project#5 is assigned (Due on Thursday, April 30): Click
here for details.
- Week
13
Tuesday,
April 16: Finish Version 1 of Project#5
by today. Object-oriented programming. Creating
your own Java classes. Using the Canvas widget. PlayBalloon
Applet
Read: Chapters 9, 10, and 12 from Bell & Parr. Review
Chapter 17 also.
Thursday, April 18: Using canvases. Sorting arrays. Canvas
Example Applet |
|
- Week
14
Tuesday, April 23: Sorting arrays. Analysis of sorting algorithms.
Finding Anagrams.
Thursday, April 25: Images and Sounds in Java. The
Sound Player Applet, the Photo
Album Applet.
Read: Chapter 20 from Bell & Parr.
- Week
15
Tuesday, April 30: Wrap up of course.
Thursday, May 2: Exam 3 is today.
Grading
All
graded work will receive a grade, 4.0, 3.7, 3.3, 3.0, 2.7, 2.3, 2.0,
1.7, 1.3, 1.0, or 0.0. At the end of the semester, final grades will
be calculated as a weighted average of all grades according to the following
weights:
Exam
1: 15%
Exam 2: 15%
Exam 3: 15%
Projects: 45%
Homework: 10%
Total: 100%
Links
|