22 November 2015

Week 16

Attendance (w16-1)

Slides (w16-1)

Class diagram

A2 Report
(due: Friday 27/12/15)

A2 Video Demo
- 10 minutes max
- features (what it can do)
- extra features
- try to sell it
upload to youtube and post link on your blog
(due: Saturday 5/12/15)

Lab: show your A2 progress


Attendance (w16-2)

Slides (w16-2)

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)

27 September 2015

Week 8


Lab 5 final version

Bitbucket quick intro (v.2)
for A1 submission
- commit your current version today
- update regularly (daily?)


Attendance (w8-2)

Slides (w8-2)

20 September 2015

Week 7

Attendance (w7-1)

Slides (w7-1)

Lab 5 draft


Slides (w7-2)

No attendance..

13 September 2015

Assignment 1 (A1)

draft version 0.1

A1 version 1.0

Week 6

Attendance (w6-1)

Slides (w6-1)

Lab 4x Hello Python
- try using online python editor and write programs for generic exercises
- visualize code execution


Attendance (w6-2)

Slides (w6-2)

8 September 2015

Monthly Loan Payment


From this example, monthly payment is $444.24 (not $500)

To calculate use this formula



6 September 2015

Pseudocode example

The following pseudocode determines whether a year is a leap year

if (year is not exactly divisible by 4) then (it is a common year)
else if (year is not exactly divisible by 100) then (it is a leap year)
else if (year is not exactly divisible by 400) then (it is a common year)
else (it is a leap year)

https://en.wikipedia.org/wiki/Leap_year

Week 5

Attendance (w5-1)

Slides (w5-1)

Lab 4


Attendance (w5-2)

30 August 2015

Week 4

Attendance (w4-1)

Slides (w4-1)

Lab 3


Attendance (w4-2)

Slides (w4-2)

23 August 2015

Week3

Attendance (w3-1)

Slides (w3-1) some error (function name, area( ) )

Lab 2


Attendance (w3-2)

Slides (w3-2)

16 August 2015

Week2


Attendance (w2-1)

Lab 1

For first year students only: lab1-list
- please fill in your blog url

Attendance (w2-2)




4 August 2015

Welcome to Com Pro Fun 2558


Computer programming is fun : )

Coming soon

----------------
W1-1

Attendance (w1-1)

Syllabus

Slides (w1-1)

Lab0


For first year students only: lab0-list


----------------
W1-2

Attendance (w1-2)