This site is from a past semester! The current version will be here when the new semester starts.
CS2103/T 2020 Jan-Apr
  • Full Timeline
  • Week 1 [Jan 13]
  • Week 2 [Jan 20]
  • Week 3 [Jan 27]
  • Week 4 [Feb 3]
  • Week 5 [Feb 10]
  • Week 6 [Feb 17]
  • Week 7 [Mar 2]
  • Week 8 [Mar 9]
  • Week 9 [Mar 16]
  • Week 10 [Mar 23]
  • Week 11 [Mar 30]
  • Week 12 [Apr 6]
  • Week 13 [Apr 13]
  • Textbook
  • Admin Info
  • Report Bugs
  • Forum
  • Instructors
  • Announcements
  • File Submissions
  • Tutorial Schedule
  • Java Coding Standard
  • Participation Marks List

  •  Individual Project (iP):
  • Individual Project Info
  • Duke Upstream Repo
  • iP Code Dashboard
  • iP Showcase

  •  Team Project (tP):
  • Team Project Info
  • Team IDs
  • Addressbook-level3
  • Addressbook-level 1,2,4
  • tP Code Dashboard
  • tP Showcase
  • Week 9 [Mar 16] - Tutorial

    1 Demo v1.2

    2 Do a Postmortem of v1.2

    • Share with the tutor your opinion on how v1.2 went, and your plans to improve the process (not the product) in v1.3, individually and as a team.

    3 Exercise: OODMs, Activity Diagrams

    3A. 10-12 minutes Divide into two sub-teams and do the following questions on the whiteboard.

    Sub-team 1: You can use the association class notation in the answer.

    (i) Draw an OODM for the description below, about how in some universities, these are called modulescourses work in a certain university:

    A course has a name and a code. A course is read by 10 or more students, and taught by a team of instructors one of whom is the coordinator. A course can have a number of tasks which can be assignments or tests. Some assignments are compulsory. When a student attempts a task, a grade and an optional feedback is given.

    You can use the following layout for the diagram. Add more classes if needed.

    (ii) Which type of a UML diagram would you use to illustrate the following situation?

    The course CS101 Intro to CS is taught by Prof Lee. It has two optional assignments and one test.

    Sub-team 2:

    Draw an activity diagram to represent the following workflow a burger shop uses when processing an order by a customer.

    • First, a cashier takes the order.
    • Then, three workers start preparing the order at the same time; one prepares the drinks, one prepares the burgers, and one prepares the desserts.
    • In the meantime, the customer pays for the order. If the customer has a voucher, she pays using the voucher; otherwise she pays using cash.
    • After paying, the customer collects the food after all three parts of the order are ready.


    [source:wikipeida]

    3B. 5 minutes Familiarize yourself with the question the other sub-team worked on.

    3C. [Group activity] Review the other sub-team's answer.