3.4 Airline Learning Activity

Under Construction

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

A platypus
3.4 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
3.4 2 How to Represent a Switch Statement in an Activity Diagram 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
3.Copy your 3.3 Airline Assignment and rename it to 3.4
3.4.1 How to Represent Interfaces in a Class Diagram
A Verify the required change or observation

Check the result against this instruction: Copy your 3.3 Airline Assignment and rename it to 3.4

4.Add an interface named IFlyable
A Have the Taildragger class implement the IFlyable interface
B In the IFlyable interface, add the method: TakeOff()
C In the Jet class, add the abstract method TakeOff()
D In the Taildragger class, add the override method TakeOff()
5.Add an interface named ICheckable
A Have the Taildragger class implement the ICheckable interface
B Have the Gate class implement the ICheckable interface
C In the Gate class, add the method CheckBag()
D In the Jet class, add the method CheckBag()
6.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
7.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

3.4 2 How to Represent a Switch Statement in an Activity Diagram

8.Create an activity diagram based on the code snip below

Reminder that "this" is not needed in diagrams.

protected void Burp(string intensity)
{
    switch (intensity)
    {
        case "Extreme":
            this.weight -= this.weight * .10;
            break;
        case "Mild":
            this.weight -= this.weight * .05;
            break;
        case "Baby":
            this.weight -= this.weight * .02;
            break;
        default:
            this.weight -= this.weight * .01;
            break;
    }
}
A Verify the required change or observation

Check the result against this instruction: Create an activity diagram based on the code snip below.

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.

Zip up the diagrams and submit to the Feedback System. Copy and paste the resulting URL into the…
10.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
11.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 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.