![]() |
Computer Science 201 |
![]() |

JAVA |
JAVA HISTORYYou'll find the history of Java to be fascinating. Did you know that the original designer of Java was James Gosling from Calgary, Alberta? Pop on your earphones and watch and listen to the following flash presentation on the: History of Java from PublicStaticVoidMain. |
|||||
CLICK HERE TO INSTALL JAVA & ECLIPSE |
||||||
| Task | Topic | Resources | Assignments | |||
|---|---|---|---|---|---|---|
1 |
Create First Java Program |
Horstmann Chap 1
Sedgewick Chap 2.1 Litvin Chap 2-GUI Deitel Chap 2 |
Study Horstmann's Introduction: Chapter 1. Code, Compile & Execute HelloTester.java p 17 Programming Exercises To Be Graded (pp 30-31): P1.2, P1.4, P1.6, P1.8. Make a project for each chapter. Make a package for each exercise within the chapter's project. Place all classes related to the exercise within the package. Initially, as in this chapter, an exercise may be solved using only one class; thus there would be only one class in a package. In later chapters,however, there are multiple classes in a program that solves an exercise problem. In that event, all classes in such a solution would be in the same package. Here is how to do it. For each exercise, submit a printed copy of a wordprocessing document containing:
Follow these directions to place line numbers with source code in Eclipse and later in WORD. Follow these directions on organizing assignments when working with Eclipse. |
|||
| Task | Topic | Resources | Slide Show | Assignments | ||
2 |
Using Objects |
Horstmann Chap 2
|
Study Horstmann's Using Objects: Chapter 2. Learn about methods by studying the Methods Tutorial [csg] [web] retrieved from the web site of North Carolina teacher Ruth Hartsook. See two frames from her tutorial below. ![]() ![]()
Programming Exercises To Be Graded (pp 59-61): P2.2, P2.4, P2.6, P2.8, P2.10 For each exercise, submit a printed copy of a wordprocessing document. |
|||
| Task | Topic | Resources | Slide Show | Assignments | ||
3 |
Implementing |
Horstmann Chap 3
|
Study Horstmann's Implementing Classes: Chapter 3. Learn about encapsulation by studying the Encapsulation Tutorial [csg] [web] retrieved from the web site of North Carolina teacher Ruth Hartsook. Links to source code for this tutorial follows.
Create and automatically generate an ID template. You only need one ID template per program. Do not attach an ID Template to every class. Attach the ID Template only to the class containing the public static void main(String[] args) method, since it is the first line of this method where the program begins to execute. But do indeed attach a Javadoc comment to every other class describing the purpose of the class. Click here to see how a method can return multiple values by returning an object containing values of multiple instance variables!! Click here to see pros and cons about whether instance variables (aka "fields of a class") should be declared at the top or bottom of a class. Programming Exercises To Be Graded (pp 98-100): P3.2, P3.4, P3.6, P3.8, P3.10, P3.12, P3.14 For each exercise, submit a printed copy of a wordprocessing document. |
|||
| Task | Topic | Resources | Slide Show | Assignments | ||
4 |
Fundamental |
Horstmann Chap 4
|
Study Horstmann's Fundamental Data Types: Chapter 4. Learn about reading input and writing output using Java's Scanner class by reading the following
Java's Scanner Class Overview
[csg]
[web]
retrieved from the web site of North Carolina teacher
Ruth Hartsook.
Note that the overview is done in Flash. You may copy and paste code from the examples after
clicking the capital "I" For more more explanation of Primitive Data Types and special "escapte characters", read Kjell's Tutorial 8. For more more explanation of the Scanner class, read Kjell's Tutorial 10.
Javadoc Comments
Though you do not need to know how to create Javadoc files at this point, you may learn how to do so by studying the tutorials in Learn Javadoc. Programming Exercises To Be Graded (pp 144-148): P4.2, P4.4, P4.6, P4.8, P4.10, P4.12, P4.14, P4.16, P4.18. For each exercise, submit a printed copy of a wordprocessing document. |
|||
| Task | Topic | Resources | Assignments | |||
* |
Eclipse |
|
||||
| Task | Topic | Resources | Assignments | |||
* |
Number |
FILLER | FILLER | FILLER | ||
| Task | Topic | Resources | Slide Show | Assignments | ||
5 |
Programming |
Horstmann Chap 5
Deitel Chap 11 |
Study Horstmann's Programming Graphics: Chapter 5. Programming Exercises To Be Graded (pp 186-187): P5.2, P5.4, P5.6, P5.8, P5.10, P5.12, P5.14, P5.16. For each exercise, submit a printed copy of a wordprocessing document. |
|||
| Task | Topic | Resources | Assignments | |||
* |
LISP |
FILLER | FILLER | FILLER | ||
| Task | Topic | Resources | Assignments | |||
6 |
Decisions |
Horstmann Chap 6
Deitel Chap 4 |
Study Horstmann's Decisions: Chapter 6. Pay particular attention to the use of Boolean expressions, pp 213-219, noting that using two Boolean operators such as && or | | short circuits the evaluation whereas using a single Boolean operator such as & or | always evaluates both operands. Peruse interesting presentations of Boolean Expressions and Short-circuit Operators and Truth Tables and De Morgan's Rules by Bradley Kjell. Programming Exercises To Be Graded (pp 225-229): P6.2, P6.4, P6.6, P6.8, P6.10, P6.12, P6.14 and P6.16 but not P6.18. For each exercise, submit a printed copy of a wordprocessing document. |
|||
| Task | Topic | Resources | Assignments | |||
* |
Mathematical |
FILLER | FILLER | FILLER | ||
| Task | Topic | Resources | Assignments | |||
7 |
Iterationwhile Loops for Loops Nested Loops Sentinel Values Random Numbers |
Horstmann Chap 7
Kjell 15 16 17 18 19 20 39 40 41 42 43 44 Deitel Chap 5 |
Learn about using the traditional "for loop" in Java by studying the following For Loop Tutorial [csg] [web] retrieved from the web site of North Carolina teacher Ruth Hartsook. Learn about for loops by studying the For Loops Tutorial [csg] [web] retrieved from the web site of North Carolina teacher Ruth Hartsook. Observe an example of the sequence of changes in values with nested loops in the following Nested Loops Demonstration [csg] [web] retrieved from the web site of North Carolina teacher Ruth Hartsook. Learn to follow and trace the flow of execution through the following Nested Loop Demonstration [csg] [web] retrieved from the web site of North Carolina teacher Ruth Hartsook. Study Horstmann's Iteration: Chapter 7. Study Eck's Programming in the Small II Control for a traditional, easy to understand, treatment of loops and branching statements. Programming Exercises To Be Graded (pp 270-275): P7.2, P7.4, P7.6, P7.8, P7.10, P7.12, P7.14 and P7.16 but not P7.18. For each exercise, submit a printed copy of a wordprocessing document. |
|||
| Why Study Arrays Independently Before Studying Java's Array List Class? | ||||||
* |
Arrays |
Kjell 46 47 48 49A 49B 49C 49D Deitel Chap 7 |
Study the Kjell chapters: 46 47 48 49A 49B 49C 49D Do all the exercises and quizzes associated with the Kjell chapters on arrays. Programming Exercises To Be Graded: 46 [1-5], 47 [1-5 ], 48 [1-3], 49B [1-3]. 49C [1-9] and 49D [1-3]. For each exercise, submit a printed copy of a wordprocessing document. | |||
|
|
![]() gerry@comscigate.com |
|