1 / 8

Workshop / Exercises

Workshop / Exercises. Lecture 9 Summary, Exercises. 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.

shayla
Download Presentation

Workshop / Exercises

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Workshop / Exercises Lecture 9 Summary, Exercises Aalborg Media Lab

  2. 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? ) Aalborg Media Lab

  3. 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. Aalborg Media Lab

  4. Leap Year Truth-Table if( year % 4 == 0 && year % 4 != 0 || year % 400 == 0) Aalborg Media Lab

  5. 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. Aalborg Media Lab

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

  7. Aalborg Media Lab

  8. Exercises so far Aalborg Media Lab

More Related