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.

Important Dates

  • Course Content Release: 1 June 2016 09:00 (GMT+8)
  • Exam Release Date: 15 June 2016 09:00 (GMT+8)
  • Graded Assessments and Exam Due Date: 23 August 2016 23:59 (GMT+8)

Course Outline

Week Learning Objectives Contents Graded Assessments

1

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

Module 01 - Course Overview

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

Module 01 Graded Problem Tasks
Lab 01 - Hello World

2

  • 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

Module 02 - Programming Fundamentals

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

Module 02 Graded Problem Tasks
Lab 02 - Math is Easy

3

  • 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 style

Module 03 - Object-oriented Programming

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

Module 03 Graded Problem Tasks
Lab 03 - ColorImage Objects

4

  • 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

Module 04 - Scope Rules, Character String, Control Flow (if-else-if, switch)

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

    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

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

5

  • 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

Module 05 - Control Flow (loops), Arrays

while loop; static methods; Shortcut operators; do-while loop; for loop; Arrays

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

Handouts:

  • PPT slides in PDF

Module 05 Graded Problem Tasks
Lab 05 - Matching Game

6

  • N/A

Exam

    1. Scope of the Exam
    2. Exam

Handouts:

  • Scope of Exam in PDF

Exam