You are on page 1of 5

Republic of the Philippines

BATANGAS STATE UNIVERSITY


JPLPC Campus
Malvar, Batangas

COLLEGE OF ENGINEERING AND COMPUTING SCIENCES

Syllabus for CS/IT 242


OBJECT ORIENTED PROGRAMMING (JAVA - NETBEANS)
1st Semester, A.Y. 2010-2011
Ms. Shiela Marie S. Gocoyo
e-mail: shiela_gocoyo@yahoo.com/shiela_bsu@yahoo.com

Vision

A university which shapes a global Filipino imbued with moral courage nurtured
through values and excellent education.

Mission

Batangas State University is committed to implement its mandates of quality and


excellence, relevance and responsiveness, access and equity and efficiency and
effectiveness through instruction, research, extension and production to meet the
growing needs of the country and the world for globally competitive and morally upright
professionals, scientists, technologists, technicians, skilled workers and entrepreneurs.

Philosophy

This course introduces a typical Java programming environment and provides a


lightweight introduction to programming applications and applets in the Java
programming language. Java is a powerful object-oriented language that is fun to use for
novices but also appropriate for experienced programmers building substantial
information systems. Java is certain to become the language of choice in the new
millennium for implementing Internet-based applications as well as software for devices
that communicate over networks (such as cellular phones, pagers and personal digital
assistants.

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.

2. Beyond C & C++: Operators, Methods & Arrays in Java


a.) To understand primitive types and logical operators as they are used
in Java.
b.) To introduce the common math methods available in the Java APL.
c.) To be able to create new methods.
d.) To understand the mechanisms used to pass information between
methods.
e.) To introduce simulation techniques using random number generation.
f.) To understand array objects in Java.
g.) To understand how to write and use methods that calls themselves.

3. Java Object-Based Programming


a.) To understand encapsulation and data hiding.
b.) To understand the notions of data abstraction and abstract data types
(ADTs).
c.) To create Java ADTs, namely classes.
d.) To be able to create, use and destroy objects.
e.) To understand class variables and class methods.

4. Java Object-Oriented Programming


a.) To understand inheritance and software reusability.
b.) To understand superclasses and subclasses.
c.) To appreciate how polymorphism makes systems extensible and
maintainable.

5. Java Graphics and Java2D


a.) To understand graphics contexts and graphics objects.
b.) To understand and be able to manipulate colors.
c.) To understand and be able to manipulate fonts.
d.) To understand and be able to use Graphics methods for drawing
lines, rectangles with rounded corners, three-dimensional rectangles,
ovals, arcs and polygons.
e.) To use methods of class Graphics2D from the Java2D API to draw
lines, rectangles, rectangles with rounded corners, ellipses, arcs and
general paths.
f.) To be able to specify Paint and Stroke characteristics of shapes
displayed with Graphics2D.

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.

Class Standing (Quizzes, 10%


Seatwork, Recitation and Project)
Laboratory/Hands-on 30%
Major Exams (Prelim, Midterm,
Semi-final Exams (x1), Final Exam 60%
(x2))
Total 100%

The following scale will determine each student’s final grade.

Percentage Numerical Equivalent


98-100 1.00
94-97 1.25
90-93 1.50
88-89 1.75
85-87 2.00
82-84 2.25
80-82 2.50
78-79 2.75
75-77 3.00
70-74 4.00
Incomplete Inc.
Below 70 5.00

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:

BRONSON, GARY J., “JAVA for Engineers and Scientists”, 2003

DEITEL & DEITEL, “C How to Program Introducing C++ and Java”, Third Edition,
Prentice Hall Inc., 2002

OSBORNE and LAMBERT, “JAVA a Framework for Programming and Problem


Solving”, 2002

Prepared by:

Ms. SHIELA MARIE S. GOCOYO


Instructor

Recommending Approval:

Engr. JOSELITO K. SANTOS


Associate Dean, CECS
Approved:

Dr. NORA G. DIMAANO


Director, Academic Affairs

You might also like