Main content blocks
Section outline
-
CSC 2015
JAVA PROGRAMMING
COURSE DESCRIPTION:
Corequisites: None
This course introduces computer programming using the JAVA programming language with object-oriented programming principles. Emphasis is placed on event-driven programming methods, including creating and manipulating objects, classes, and using object-oriented tools such as the class debugger.
LEARNING OUTCOMES:
Upon completion of this course, the student will be able to:
a. Design, create, build, and debug Java applications and applets.
b. Apply algorithmic thinking to solve programming problems.
c. Implement syntax rules in Java programs.
d. Explain variables and data types used in program development.
e. Apply arithmetic operations for displaying numeric output.
f. Write and apply decision structures for determining different operations.
g. Write and apply loop structures to perform repetitive tasks.
h. Write user-defined methods.
i. Identify and implement arrays, array lists, and multidimensional arrays.
j. Write Java programs using object-oriented programming techniques including classes, objects, methods, instance variables, composition, inheritance, and polymorphism.
k. Write programs using graphical user interface (GUI) components and Java’s Event Handling Model.
REQUIRED TEXTBOOKS AND MATERIALS:
E-resources to be used by students see http://www.tutorialspoint.com/java/index.htm
STATEMENT OF STUDENTS WITH DISABILITIES:
Students who require academic accommodations due to any physical, psychological, or learning disability are encouraged to request assistance from academic office within the first two weeks of class. Likewise, students who potentially require emergency medical attention due to any chronic health condition are encouraged to disclose this information to a dean of student services within the first two weeks of class.
Mode of Assessment
This course is evaluated as following:
-Quiz and Assignment: 30%
-Mid semester exam: 30%
-Final exam: 40%
-
JAVA PROGRAMMING
COURSE DESCRIPTION:
Corequisites: None
This course introduces computer programming using the JAVA programming language with object-oriented programming principles. Emphasis is placed on event-driven programming methods, including creating and manipulating objects, classes, and using object-oriented tools such as the class debugger.
LEARNING OUTCOMES:
Upon completion of this course, the student will be able to:
a. Design, create, build, and debug Java applications and applets.
b. Apply algorithmic thinking to solve programming problems.
c. Implement syntax rules in Java programs.
d. Explain variables and data types used in program development.
e. Apply arithmetic operations for displaying numeric output.
f. Write and apply decision structures for determining different operations.
g. Write and apply loop structures to perform repetitive tasks.
h. Write user-defined methods.
i. Identify and implement arrays, array lists, and multidimensional arrays.
j. Write Java programs using object-oriented programming techniques including classes, objects, methods, instance variables, composition, inheritance, and polymorphism.
k. Write programs using graphical user interface (GUI) components and Java’s Event Handling Model.
OUTLINE OF INSTRUCTION:
I. Introduction
A. History of Java
B. Features of Java
C. How Java works
D. Types of Java Programs
E. Edit, compile, and run Java applications and applets
II. Variables, data types, and expressions
A. Identifier rules
B. Naming variables, constants (final) and references
C. Primitive data types
D. Arithmetic Operators
E. Assignment Operators
F. Relational and Logical Operators
III. Program control flow
A. Sequence structure
B. Selection structure
C. Repetition structure
D. Jump (Sequence) structure
IV. Methods
A. Java API and Package/Library methods
B. User-defined methods
C. Scope and duration
D. Local and Field variables
E. Pass-by-value, Pass-by-reference
F. Recursion
G. Overloading
V. Arrays
A. Declaration and allocation
B. Passing arrays to methods
C. Sorting, searching
D. Multiple-subscripted
VI. Object-Based Programming
A. Classes and objects, instance variables, and instance methods
B. Member access modifiers: public, private, protected, package
C. Creating packages
D. Constructors, overloaded constructors
E. Set (mutator), Get (access), and predicate methods
F. Final instance variables
G. Composition
H. Finalizers, garbage collection
I. Static class members
J. this reference
VII. Object-Oriented Programming
A. Inheritance
B. Super class, subclass
C. Polymorphism
D. Dynamic method binding
E. Abstract class, Concrete class
F. Inner class definition
G. Type-wrapper class for primitive data types
H. Interfaces
VIII. Graphical User Interface
A. Event-Driven Programming and Event Handling Model
B. Window Components
C. Mouse and keyboard event handling
D. Adapter classes
E. Layout managers
REQUIRED TEXTBOOKS AND MATERIALS:
E-resources to be used by students see http://www.tutorialspoint.com/java/index.htm
STATEMENT OF STUDENTS WITH DISABILITIES:
Students who require academic accommodations due to any physical, psychological, or learning disability are encouraged to request assistance from academic office within the first two weeks of class. Likewise, students who potentially require emergency medical attention due to any chronic health condition are encouraged to disclose this information to a dean of student services within the first two weeks of class.
-
Basic JAVA classes, packages - Java class hierarchy – Writing complex
programs using Packages, User defined classes and flow control statements.
Activities: 1 -
Java Basic Data Types
Variables are nothing but reserved memory locations to store values. This means that when you create a variable you reserve some space in memory.
Based on the data type of a variable, the operating system allocates memory and decides what can be stored in the reserved memory. Therefore, by assigning different data types to variables, you can store integers, decimals, or characters in these variables.
Activities: 1 -
The statements inside your source files are generally executed from top to bottom, in the order that they appear. Control flow statements, however, break up the flow of execution by employing decision making, looping, and branching, enabling your program to conditionally execute particular blocks of code. This section describes the decision-making statements (
if-then
,if-then-else
,switch
), the looping statements (for
,while
,do-while
), and the branching statements (break
,continue
,return
) supported by the Java programming language.Activities: 0 -
Activities: 1
-
Arrays
An array is a container object that holds a fixed number of values of a single type. The length of an array is established when the array is created. After creation, its length is fixed. You have seen an example of arrays already, in the
main
method of the "Hello World!" application. This section discusses arrays in greater detail.An array of 10 elements.
Each item in an array is called an element, and each element is accessed by its numerical index. As shown in the preceding illustration, numbering begins with 0. The 9th element, for example, would therefore be accessed at index 8.
Activities: 2 -
graphical user interface: a software interface designed to standardize and simplify the use of computer programs, as by using a mouse to manipulate text and images on a display screen featuring icons, windows, and menus. Also called GUI.
what is an Applet? It is a very small application, especially a utility program performing one or a few simple functions.
Activities: 1
Background Colour
Font Face
Font Kerning
Font Size
Image Visibility
Letter Spacing
Line Height
Link Highlight
Text Alignment
Text Colour