(Note: Please use Google Chrome web browser. Other browsers may not support the clicking/expanding/folding feature of this website. If you are using FireFox, you can enable 'Custom HTML Elements'. Open 'about:config' and enable the 'dom.webcomponents.enabled' flag.)

COMP 1130 Computer Programming I

Test yourself if you are

Announcements:

Students are introduced to the use of structured problem solving methods, algorithms, structured programming, and object-oriented programming concepts. Students use a high level programming language to learn how to design, develop, and document well-structured programs using software engineering principles. Students learn the workings of a computer as part of programming. This course is for students who plan to take further courses in Computing Science or to learn basic programming concepts.

Contents [Hide]
(The schedule can be changed.)

  1. Introduction to the course: Week 1
    • Introduction
    • Learning objectives
    • Expectations
    • Instructor
    • How to study well - Is motivation good enough?
  2. Introduction to programming (Chapter 1): 1 week
    1. What is programming?
    2. The Java programming language
    3. How to develop Java programs
  3. How to store/use data in programs - I (Chapter 2): 1.5 weeks
    1. How to print messages
    2. Where to store data
    3. What kind of data to store
    4. What to do with data
  4. How to store/use data in programs - II (Chapter 3): 2 weeks
    1. How to create objects
    2. How to define objects
    3. The String class
    4. The Random class
    5. The Math class
    6. How to print messages in better formats
  5. How to express conditional instructions (Chapter 4): 1 week
    1. How to express conditions
    2. The if statement
    3. How to compare data
    4. The switch statement
  6. How to repeat a group of instructions, and how to read from a file and write to a file (Chapter 4): 2 weeks
    1. The while statement
    2. The do-while statement
    3. The for statement
    4. Scanner as an Iterator
    5. How to read from a file
    6. How to write to a file
  7. How to write methods and classes (Chapter 5): 2 weeks
    1. Classes and objects ?
    2. Classes
    3. How to hide data in objects
    4. Methods
    5. How to share data among the objects of the same class
    6. Class relationship
    7. Method design and overloading
    8. How to test programs and remove errors/bugs
  8. How to store multiple data of the same type (Chapter 7): 2 weeks
    1. Arrays
    2. Two-dimensional arrays
  9. How to use recursion (Chapter 17): 0.5 weeks
    1. What is recursion?
    2. Recursive programming
    3. Examples