Skip to main content

Overall Course Objectives

By the end of this course, you will be able to:

  • Take a “real-life” problem and abstract out the pertinent aspects necessary to solve it.
  • Formulate formal solutions to well-defined problems using the logic of a programming language.
  • Implement formal solutions in Java using an integrated development environment.
  • Have an understanding of the basics of data abstraction using the object-oriented framework.

Course Outline

Week Release Date Learning Objectives Contents Graded Assessments

1

6, Apr 2015 09:00 (GMT+8)

  • To briefly describe computer hardware and software
  • To explain the problem solving process
  • To write the first Java program

Hardware and software; Problem solving

  1. Introduction
  2. Hardware
  3. Software and Programming Languages
  4. Problem Solving
  5. First Java Program

Handouts:

  • PPT slides in PDF

Week 01 Graded Problem Tasks
Lab 01 - Hello World

  • Due date: 13 Apr 2015 23:30 (GMT+8)

2

6, Apr 2015 09:00 (GMT+8)

  • To use the primitive data types in Java
  • To utilize identifiers and variables for storing different values
  • To construct simple programs by using arithmetic expressions and arithmetic operators
  • To explain the use of assignment statements
  • To apply type conversions in Java
  • To apply simple input/output (I/O) in programs

Primitive data types; Identifiers and Variables; Assignment statements; Arithmetic expressions; Simple I/O

  1. Introduction
  2. Identifiers
  3. Variable and Data Types
  4. Expressions
  5. Memory Allocation
  6. Simple I/O

Handouts:

  • PPT slides in PDF

Week 02 Graded Problem Tasks
Lab 02 - Math is Easy

  • Due date: 20 Apr 2015 23:30 (GMT+8)

3

13, Apr 2015 09:00 (GMT+8)

  • To briefly describe object-oriented programming
  • To create a class with properties and methods
  • To construct and use objects in a class
  • To document classes with Java documents ion style

Objects and classes; Properties and methods; Java documentation

  1. Introduction
  2. General Structure
  3. Comments
  4. Example: BankAccount
  5. Example: ColorImage
  6. Example: Car2

Handouts:

  • PPT slides in PDF

Week 03 Graded Problem Tasks
Lab 03 - ColorImage Objects

  • Due date: 27 Apr 2015 23:30 (GMT+8)

4

20, Apr 2015 09:00 (GMT+8)

  • To apply the scope rules in resolving the values of variables in different scopes
  • To describe Boolean type and Boolean operators
  • To construct Boolean expressions using Boolean operators
  • To apply the use of if-else-if statements to control the flow of a program
  • To apply the use of switch statement to control the flow of a program
  • To understand the char type and String type in Java

Scope rules; Boolean expressions; Branching statements: if-else-if, switch; Character String

    1. Introduction
    2. More Examples
    3. Character String
    4. Boolean Expressions
    5. Branching Statement - If-else-if
    6. Branching Statement - Switch

Handouts:

  • PPT slides in PDF

Week 04 Graded Problem Tasks
Lab 04 - Rock-paper-scissors

  • Due date: 4 May 2015 23:30 (GMT+8)

5

27, Apr 2015 09:00 (GMT+8)

  • To formulate repetitive actions in a program by using a loop statement
  • To explain the different loop constructs such as while loop, do ... while loop and for loop
  • To use shortcut operators in programs
  • To construct an array for holding objects of the same type
  • To swap entries in an array

Loops; Shortcut operators; Arrays

    1. Introduction
    2. Static Methods and Shortcut Operators
    3. Do-while and For Loops
    4. Arrays

Handouts:

  • PPT slides in PDF

Week 05 Graded Problem Tasks
Lab 05 - Matching Game

  • Due date: 11 May 2015 23:30 (GMT+8)