Introduction to Computers and Engineering Problem Solving

Lecture Notes

LEC #

TOPICS

Control and Scope

L1

Course Overview, Introduction to Java® (PDF)

L2

Interactive Development Environment: Eclipse (PDF)

L3

Data Types, Operators (PDF)

L4

Control Structures (PDF)

L5

Control Structures II (PDF)

L6

Methods, Scope (PDF)

Classes and Objects

L7

Classes (PDF)

L8

Classes II (PDF)

L9

Access (PDF)

L10

Static Members (PDF)

L11

Arrays, Arraylists (PDF)

L12

Recursion (PDF)

Inheritance and Interfaces

L13

Inheritance (PDF)

L14

Inheritance II (PDF)

L15

Interfaces (PDF)

L16

Exceptions and Inner Classes (PDF)

Graphical User Interfaces

L17

Introduction to Swing (PDF)

L18

Swing Event Model (PDF)

L19

Swing Event Model II (PDF)

L20

Model-View-Controller (PDF)

L21

2D API, Applets (PDF)

Numerical Methods

L22

Matrix Methods (PDF)

L23

Linear Systems (PDF)

L24

Integration, Differential Equations (PDF)

L25

Root Finding (PDF)

Data Structures

L26

Stacks and Queues (PDF)

L27

Linked Lists (PDF)

L28

Trees (PDF)

L29

Graphs, Networks (PDF)

Java® I/O (Streams)

L30

Streams (PDF)

L31

Streams II (PDF)

Sorting and Searching

L32

Searching: Hashing (PDF)

L33

Sorting Algorithms (PDF)

L34

Sorting Algorithms II (PDF)

Threads and the Web

L35

Threads (PDF)

L36

Threads II (PDF)

L37

Java® and the Web (PDF)

Recitations

REC #

TOPICS

R1

Tutorial 1: Introduction to 1.00 (PDF)

R2

Tutorial 2: Data Types, Operators, Control Structures (PDF)

R3

Tutorial 3: Methods, Scope, Classes, Objects (PDF)

R4

Tutorial 4: Access, Static, Arrays, Arraylists (PDF)

R5

Tutorial 5: Recursion and Inheritance (PDF)

R6

Tutorial 6: Abstract Classes, Interfaces, and Problem Set 5 (PDF)

R7

Tutorial 7: Swing I (PDF)

R8

Tutorial 8: 2D API, Model-View-Controller, Applets, Matrices and Linear Systems (1) (PDF)

R9

Tutorial 9: Matrices, Integration, Root Finding (PDF)

R10

Tutorial 10: Linked List (PDF)

R11

Tutorial 11: Trees, Streams, Problem Set 10 (PDF)

Assignments

All code produced using Java® software.

ASSIGNMENTS

SUPPORTING FILES

SOLUTIONS

Problem Set 1 (PDF)

SlideLength_hw1sol.java (JAVA)

Problem Set 2 (PDF)

Catenary_hw2 sol.java (JAVA)

Problem Set 3 (PDF)

SampleOutput_HW3.txt (TXT)

Tank.java (JAVA)
TankTest.java (JAVA)

Problem Set 4 (PDF)

CodeFragment_hw4.java (JAVA)
HW4.xls (XLS)

Lake.java (JAVA)
LakeTest.java (JAVA)
Observation.java (JAVA)

Problem Set 5 (PDF)

PlantType1.java (JAVA)
PlantType2.java (JAVA)
PlantType3.java (JAVA)
Town.java (JAVA)
TreatmentPlant.java (JAVA)
TreatmentPlantTest.java (JAVA)

Problem Set 6 (PDF)

CatenaryController.java (JAVA)
CatenaryModel.java (JAVA)

Problem Set 7 (PDF)

CatenaryController.java (JAVA)
CatenaryModel.java (JAVA)
CatenaryView.java (JAVA)

Problem Set 8 (PDF)

Homework Q1

FuncSailForce.java (JAVA)
FuncSailLine.java (JAVA)
HW8_Q1.java (JAVA)
Integration.java (JAVA)
MathFunction.java (JAVA)
Simpson.java (JAVA)
Trapezoid.java (JAVA)

Homework Q2

ChannelPanel.java (JAVA)
FlowFunction.java (JAVA)
HW8_Q2.java (JAVA)
HW8_Q2_GUI.java (JAVA)
MathFunction.java (JAVA)
MathFunction2.java (JAVA)
Newton.java (JAVA)
RootFinder.java (JAVA)

Problem Set 9 (PDF)

Container.java (JAVA)
ContainerTest.java (JAVA)

With GUI

Container.java (JAVA)
ContainerPanel.java (JAVA)
ContainerTerminal.java (JAVA)
ContainerTestGUI.java (JAVA)

Without GUI

Container.java (JAVA)
ContainerTerminal.java (JAVA)
ContainerTest.java (JAVA)

Problem Set 10 (PDF)

Diagnostic.txt (TXT)

Diagnostic.java (JAVA)
DiagnosticGUI.java (JAVA)

Exams

In addition to weekly problem sets, students are evaluated based on their performance on 2 in-class quizzes and a final exam. During these exams, students may use their notes and book, but all work must be their own. Students should complete each quiz within 1.5 hours and the final exam in 3 hours. Note that this section includes quizzes and exams from the previous four semesters as reference.

SEMESTERS

EXAMS

SOLUTIONS

Spring 2003

Quiz 1A (PDF)

(PDF)

 

Quiz 1B (PDF)

(PDF)

 

Final Exam (PDF)

(PDF)

Fall 2003

Quiz 2 (PDF)

(PDF)

Spring 2004

Quiz 1 (PDF)

(PDF)

 

Quiz 2 (PDF)

(PDF)

 

Final Exam (PDF)

(PDF)

Fall 2004

Quiz 2 (PDF)

(PDF)

 

Final Exam (PDF)

(PDF)

Spring 2005

Quiz 1 (PDF)

(PDF)

 

Quiz 2 (PDF)

(PDF)

 

Final Exam (PDF)

(PDF)