2.3 Airline Learning Activity

Under Construction

This page is currently being built. Please check back soon.

A platypus
2.3 Airline Learning Activity — overview

Use the goals, acceptance criteria, and nested tasks below to prepare and complete this activity. Follow the stated scope carefully.

1.Gather your resources
A Open the assignment resources
Go to the completion checklist
Represent the class view
2.Review the notation example
A Identify the notation used in this view
Class diagram notation example. class Example { - value : int + Example(value : int) + Value : int {get} + Accept(item : Other) : Other } Example --> Other : item
Class diagram notation example
  • New
  • Changed
  • Removed
2.3.1 How to Represent Read-only Lists in a Class Diagram
3.Open your 2.2 Class Diagram in Violet
A Verify the required change or observation

Check the result against this instruction: Open your 2.2 Class Diagram in Violet

4.Modify the Terminal class so it has a readonly list of Gates instead of two fields named GateA and GateB
A Verify the required change or observation

Check the result against this instruction: Modify the Terminal class so it has a readonly list of Gates instead of two fields named GateA and GateB.

5.Verify the diagram against the evidence
A Inspect the rendered diagram

Open or render your diagram, inspect every label and relationship, and compare it with the code or debugger state. Resolve syntax errors, clipped labels and unreadable crossings before submission.

Represent the object view
6.Review the notation example
A Identify the notation used in this view
Object identity and list order example. object "items : List<Example>" as items object "first : Example" as first { value = 7 } object "second : Example" as second { value = 9 } items --> first : [0] items --> second : [1]
Object identity and list order example
  • New
  • Changed
  • Removed
2.3.2 How to Represent Lists in an Object Diagram
7.Open a new Object Diagram in Violet
A Verify the required change or observation

Check the result against this instruction: Open a new Object Diagram in Violet

8.Represent a list of Gates from the Terminal class in order of and based on the object values below
A A Gate that has a HasSkyway value of true, a Name of GateA and a Distance of 250
B A Gate that has a HasSkyway value of false, a Name of GateB and a Distance of 120
C A Gate that has a HasSkyway value of true, a Name of GateC and a Distance of 480
9.Verify the diagram against the evidence
A Inspect the rendered diagram

Open or render your diagram, inspect every label and relationship, and compare it with the code or debugger state. Resolve syntax errors, clipped labels and unreadable crossings before submission.

Represent the activity view
10.Review the notation example
A Identify the notation used in this view
Nested decisions example. start if (Object exists?) then (yes) if (Condition is satisfied?) then (yes) :Perform conditional action; endif :Perform action common to the outer branch; endif stop
Nested decisions example
  • New
  • Changed
  • Removed
2.3.3 How to Represent Foreach Loops in an Activty Diagram
11.Open a new Activity Diagram in Violet
A Verify the required change or observation

Check the result against this instruction: Open a new Activity Diagram in Violet

12.Represent the following code in an Activity Diagram

There is no need to represent the return statement.

double totalTickets = 0;
foreach (Gate g in this.Gates)
{
    totalTickets += g.NumberOfTickets;
}
return totalTickets;
A Verify the required change or observation

Check the result against this instruction: Represent the following code in an Activity Diagram.

13.Verify the diagram against the evidence
A Inspect the rendered diagram

Open or render your diagram, inspect every label and relationship, and compare it with the code or debugger state. Resolve syntax errors, clipped labels and unreadable crossings before submission.

Zip up the diagrams and submit to the Feedback System. Copy and paste the resulting URL into the…
14.Save and submit
A Carry out the source requirement

Zip up the diagrams and submit to the Feedback System. Copy and paste the resulting URL into the correct Canvas assignment.

Completion checklist
15.Review the required evidence
A Check every acceptance criterion

Return to each user story and confirm that you can demonstrate its acceptance criteria. Use the task checkboxes to track completion; a checked box is not a substitute for testing or inspecting the required evidence.

Represent the class view Represent the object view Represent the activity view
B Follow this activity’s submission instructions

Use the submission or attendance instructions in this page. For a Feedback System submission, upload the requested ZIP, review and resolve the feedback, and submit the resulting URL to the matching Canvas activity. For a Canvas quiz, enter only the requested answers; for an oral final, complete the scheduling and attendance steps.