Presentation is loading. Please wait.

Presentation is loading. Please wait.

Aalborg Media Lab 27-Jun-15 Workshop / Exercises Lecture 9 Summary, Exercises.

Similar presentations


Presentation on theme: "Aalborg Media Lab 27-Jun-15 Workshop / Exercises Lecture 9 Summary, Exercises."— Presentation transcript:

1 Aalborg Media Lab 27-Jun-15 Workshop / Exercises Lecture 9 Summary, Exercises

2 Aalborg Media Lab 27-Jun-15 Summary Chapter 1-6 core of SD course –Are general for most OO Programming Languages Additional features are listed in the rest of the book, are covered in the upcoming lectures. Two lectures have no content yet, any suggestions? project relevant topics, (game? )

3 Aalborg Media Lab 27-Jun-15 Leap Year Exercises Design an application that reads integer values and determines if the integer corresponds to a leap year. A leap year is divisible by 4, unless it is divisible by 100 but not 400. The entered number must be greater than 1582.

4 Aalborg Media Lab 27-Jun-15 Leap Year Truth-Table Year % 4Year % 100Year % 400isLeapYear False TrueFalse True False True if( year % 4 == 0 && year % 4 != 0 || year % 400 == 0)

5 Aalborg Media Lab 27-Jun-15 Course Exercises Design an implement a class called course that represents a course taken at school. Use the student class from book. The course class should contain an addStudent method and a roll method for printing all students attending to the course.

6 Aalborg Media Lab 27-Jun-15 Student -firstName: String -lastName: String -homeAddress: Address -schoolAdrees: Address -testScore: int + toString(): String Address -streetAddress: String -city: String -state: String -zipCode: long + toString(): String Course -name: String -studentList: String -scoreAverage: double -noStudents: int + toString(): String + roll(): + addStudent(Student): + getAverageScore(): int

7 Aalborg Media Lab 27-Jun-15

8 Aalborg Media Lab 27-Jun-15 Exercises so far LectureExercises SD1 – 06.09- SD2 – 06.092.3, 2.5, 2.9, 2.11, 2.13, (2.15) SD3 – 13.093.1 – 3.5 SD4 – 13.094.1, 4.8, 4.10 SD5 – 20.095.1, 5.2, 5.13 SD6 – 20.096.14


Download ppt "Aalborg Media Lab 27-Jun-15 Workshop / Exercises Lecture 9 Summary, Exercises."

Similar presentations


Ads by Google