15 November 2015

Week 15

Attendance (w15-1)

Slides (w15-1)

Inheritance
  Person/Student/Employee
  Array of Person/Student/Employee
  One function to calculate BMI

Recursive function


    Using Euclid's algorithm to find gcd
    then use it to find least common multiple (LCM) for adding Fraction
    https://en.wikipedia.org/wiki/Greatest_common_divisor

Lab - try the above in Python and Java


Attendance (w15-2)

Slides (w15-2)

8 November 2015

Week 14

Attendance (w14-1)

Class for (high school) mathematics
   Complex, Fraction, Vector

Immutable object

Method overloading (Java)
Default argument/parameter (Python)

Class reuse

To implement and test them (use assert) in lab

Attendance (w14-2)

Slides (w14-2)

1 November 2015

Week 13

Attendance (w13-1)

Slides (w13-1)

Lab 8


Attendance (w13-2)

Slides (w13-2)

25 October 2015

Week 12

Attendance (w12-1)

Slides (w12-1)

Lab 7


A1 Bitbucket URL
e.g. https://bitbucket.org/spn/a1-2558
Please make sure it is public (viewable by anyone)


Attendance (w12-2)

Slides (w12-2)



18 October 2015

Week 11

Attendance (w11-1)

Slides (w11-1)

Lab 6

4 October 2015

Week 9


Slides (w9-1)

Lab 6 after midterm : )

Try 2D array



Attendance (w9-2)

Slides (w9-2)