CS It 242 Java
CS It 242 Java
CS It 242 Java
Vision
A university which shapes a global Filipino imbued with moral courage nurtured
through values and excellent education.
Mission
Philosophy
This course provides the students with the fundamental understanding of object-
oriented programming using Java. It introduces the different concepts that are commonly
associated with object programming.
Credit Units
It is a 3-unit subject which composed of 2 hrs lecture and 3 hrs lab a week.
Audience
This subject is intended for second year BS Computer Science and Information
Technology students who have passed the subject CS 103 Fundamentals of
Programming I – Turbo C and currently taking Computer Programming II – Visual Basic.
Scope
The areas of study are as follows:
1. Introduction to Java Applications and Applets
2. Beyond C & C++: Operators, Methods & Arrays in Java
3. Java Object-Based Programming
4. Java Object-Oriented Programming
5. Java Graphics and Java2D
Course Objectives
1. Introduction to Java Applications and Applets
a.) To be able to write simple java applications.
b.) To be able to use input and output statements.
c.) To observe some of Java’s exciting capabilities through several
demonstration applets provided with the Java 2 Software
Development Kit.
d.) To understand the difference between an applet and an application.
e.) To be able to write simple Java applets.
f.) To be able to write simple Hypertext Markup Language (HTML) files
to load an applet into the appletviewer or a World Wide Web browser.
Grading System
The final grade will be based on the student’s performance on the following
areas: Homework/Research projects, Attendance, Quizzes and Major Exams.
Academic Integrity
It is stated in Article IV Section 1.3 of the Student’s Norms and Conducts that
“dishonesty such as cheating during examination or plagiarism in connection with any
academic work is a major offense which merits suspension or expulsion.”
Cheating, if caught means a grade of 5.0 (Please read the Student’s handbook
for your information and guidance).
Extra Help
More than anything else, the benefit of the students is the major and primary
concern of a teacher. Teachers have a moral obligation to students aside from the
knowledge and expertise that they should share with them.
Course Outline
The following is a tentative list of topics for the course. The instructor has the
right to alter the outline at any time due to time constraints, unexpected scheduling
conflicts, or overall benefit to class effectiveness.
Week # Topics
1-3 Introduction to Java Applications and Applets
Introduction
Basics of a Typical Java environment
A simple program: printing a line of text
Another Java application: Adding integers
Sample Applets from the Java 2 Software Development Kit
4 PRELIMINARY EXAMINATION
5 A Simple Java Applet: Drawing a String
Two More Simple Applets: Drawing Strings and Lines
Another Java Applet: Adding Integers
6-8 Beyond C and C++: Operators, Methods and Arrays in Java
Primitive Data Types and Keywords
Logical Operators
Method Definitions
Java API Packages
Random Number Generation
Example: A Game of Chance
Methods of Class: JApplet
Declaring and Allocating Arrays
Examples Using Arrays
9 MIDTERM EXAMINATION
10 Java Object-Based Programming
Class Scope
Initializing Class Objects: Constructors
11-13 Java Object-Oriented Programming
Software Engineering with Inheritance
Composition vs. Inheritance
Introduction to Polymorphism
Type fields and switch statements
Polymorphism Example
14 SEMI-FINAL EXAMINATION
15-17 Java Graphics and Java2D
Graphics Contexts and Graphics Contents
Color Control
Font Color
Drawing Lines, Rectangles and Ovals
Drawing Arcs
Drawing Polygons and Polylines
The Java2D API
Java2D Shapes
18 Program Application
Project Presentation
FINAL EXAMINATION
References:
DEITEL & DEITEL, “C How to Program Introducing C++ and Java”, Third Edition,
Prentice Hall Inc., 2002
Prepared by:
Recommending Approval: