Sei sulla pagina 1di 2

COSC 60 Lab Manual

Textbook: An Introduction to Object-Oriented Programming with Java, Third Edition, C.Thomas


Wu, c!raw-"i## Question: $o we want to %ee& this te'tboo%(
)abs Content
* Introduction to the Java+tations ,(- , write a #etter, &rint it
Create a ..orward /#e to .orward studs0s mai# to a &re.erred address
1asic 2ni' commands3 cd, rm, c&, #s, chmod, m%dir
4 Write a sim&#e java &rogram, com&i#e and run
1inar0 and he' numbers. 5umber storage.
6 7un !#enn 1roo%shear8s achine )anguage achine
9 Write a &rogram using JO&tionPane, showessage$ia#og, showIn&ut$ia#og
+tring, $ate
: Arithemtic3 integer and ;oating &oint data t0&es, &recedence, <, =, widening conversions,
casting
2sing ath methods. In&ut using a 1u>ered7eader
? $e/ning an instantiab#e c#ass. Instance variab#es, constructors, accessor methods,
mutator methods, and other sim&#e instance methods.
@ $e/ning an instantiab#e c#ass continued. static methods, Writing an a&&#ication that
creates an object o. itse#..
A +e#ection i., i.-e#se
B
C )oo&ing structures, while, for, do-while. Auto-increment <decrement o&erator.
5ested #oo&s.
4* 5ested #oo&s, charts
44 Arra0s o. &rimitives and o. Objects
46 Di#e Processing
49 Inheritance and &o#0mor&hism
Format of a lab:
o Pre Lab: This ma0 be reading sections .rom the boo% or reading in.ormation in the
beginning o. the #ab. As the #abs &rogress, it cou#d inc#ude reading e'isting code. The
student must answer a .ew basic &enci# E &a&er Fuestions about the materia# and have the
answers chec%ed with the #ab instructor be.ore continuing with the #ab e'&eriments.
o Lab experiments: In the beginning, these wi## be short. +tudents wi## be e'&ected to
t0&e in the entire &rogram. As the &rograms become more #ength0, &artia# code or
s%e#etons o. code ma0 be &rovided. The e'&eriments shou#d encourage student
e'&erimentation. The #abs wi## have s&ace .or the student to o.ten &redict behavior and to
a#wa0s con/rm behavior. This behavior inc#udes com&i#er errors, run time errors and
&rogram out&ut. The #ab shou#d be com&#eted in two hours. I. a student misses a #ab or
needs more time, he shou#d be ab#e to com&#ete the #ab on his own time. +ince there wi##
sti## be a #ab tutor, the student can sti## receive he#& outside o. the #ab.
Question: How will te stu!ent re"ei#e a $ra!e for tis portion of te lab%

o Post Lab exer"ises: This wi## be an e'tensive #ist o. additiona# &rograms that the student
shou#d be ab#e to write a.ter com&#eting the #ab. The teacher shou#d be ab#e to &ic% one or
two o. the &rograms .rom this #ist, or .rom the te'tboo%, as an assignment that is due
be.ore the ne't #ab &eriod.
& re"ommen!:
o A## #abs shou#d be on the same da0, &re.erab#0 Thursda0. Assignments wou#d then be due
on Wednesda0.
o The de&artment shou#d estab#ish &rogram .ormat guide#ines. This cou#d be as eas0 as
ado&ting the Java guide#ines or ado&ting the guide#ines with a .ew e'ce&tions.
o We insta## a sim&#e Edit-Com&i#e-7un &rogram on our machines. This wou#d &romote good
code .ormat.

Potrebbero piacerti anche