CS1101: Programming Methodology http://www.comp.nus.edu.sg/~cs1101x/ - PowerPoint PPT Presentation

About This Presentation
Title:

CS1101: Programming Methodology http://www.comp.nus.edu.sg/~cs1101x/

Description:

Go to course website, 'Labs' page to retrieve last year's lab write-ups: ... Identical codes. Please do not share codes for your lab assignments! This is Week 10 ... – PowerPoint PPT presentation

Number of Views:94
Avg rating:3.0/5.0
Slides: 10
Provided by: aaro3
Category:

less

Transcript and Presenter's Notes

Title: CS1101: Programming Methodology http://www.comp.nus.edu.sg/~cs1101x/


1
CS1101 Programming Methodology
http//www.comp.nus.edu.sg/cs1101x/
Aaron Tan
2
This is Week 10
  • Week 9
  • Chapter 10 Arrays and ArrayLists
  • This week
  • We will complete ArrayLists
  • Exercise Matrix multiplication (Matrices.java)
  • Chapter 11 Type Details and Alternate Coding
    Mechanisms
  • Mini-programming test

3
Exercise Matrix Multiplication
  • To compute C A ? B, where A, B, C are matrices
  • ci,j (ai,1 ? b1,j ) (ai,2 ? b2,j ) . . .
    (ai,n ? bn,j )
  • ci,j is sum of terms produced by multiplying the
    elements of As row i with Bs column j.
  • Example on 3?3 matrices
  • Please refer to MatricesSolution.java

4
Chapter 11
  • Lets go to Chapter 11.

5
Mini Programming Test
  • Refer to hand-out.

6
Exercises
  • Try last years lab 7 exercises
  • Sudoku
  • Rabbit Jumps
  • Polygon
  • Go to course website, Labs page to retrieve
    last years lab write-ups
  • http//www.comp.nus.edu.sg/cs1101x/3_ca/labs.html

7
Announcement/Reminder
  • Lab 4
  • Deadline 22 October (Wednesday), 2359 hr.
  • Identical codes
  • Please do not share codes for your lab
    assignments!

8
This is Week 10
  • Next week?
  • No lecture!
  • No discussion session!
  • Week 12
  • Chapter 14 Exception Handling
  • Chapter 15 Files

9
End of file
Write a Comment
User Comments (0)
About PowerShow.com