Create one class diagram and one object diagram in Violet. Use the same Passengers list in both diagrams. Copy exact diagram text from the plain-text markers without typing the markers.
Use the following declarations as the source for the class members. Represent Passengers as an association from Gate to Passenger, not as an attribute inside Gate.
using System.Collections.Generic;
public class Gate
{
public string Number;
public bool HasSkyway;
public List<Passenger> Passengers;
public void ConfirmArrival(string gateName)
{
}
public void CheckLuggage()
{
}
}
public class Passenger
{
public string Name;
}Gate and Passenger classesCreate Gate on the left and Passenger on the right. In Gate's attributes compartment, enter + Number: string and + HasSkyway: bool. In its operations compartment, enter + ConfirmArrival(gateName: string) and + CheckLuggage(). In Passenger's attributes compartment, enter + Name: string. Leave both classes' unlisted compartments empty.
Connect Gate to Passenger with an association arrow pointing toward Passenger. Put + Passengers on the relationship line, 1 at the Gate end, and * at the Passenger end. Do not duplicate Passengers inside either class.
Verify that Gate has the two public fields and two public operations, and Passenger has the public Name field. Keep + Passengers on the relationship line rather than adding it inside Gate. Check the arrow direction, labels, and multiplicities.
Model one Gate object whose Passengers list contains three distinct Passenger objects. Their names are Johnson, Xiong, and Smith.
Create an object headed GateA : Gate on the left. Inside it, add one field named Passengers. Leave the field's value area blank so you can connect references from it.
Passenger objectsCreate three separate objects on the right, each headed Passenger. Inside each object, add a field named Name. Enter Johnson in the top object's value area, Xiong in the middle object's value area, and Smith in the bottom object's value area. Enter the values without quotation marks.
Use Violet's object-reference tool to draw three arrows from the same Passengers field in GateA : Gate. Connect one arrow to each Passenger object, with the arrowheads pointing toward the passengers.
Verify that all three passenger headings are Passenger, each passenger has its own Name value, and all three arrows begin at the gate's Passengers field. Keep the text readable and the arrows separated.
Use Airline 2.4 LastName as the base filename, replacing LastName with your last name. Keep Violet's diagram-type suffix and .violet.html extension. Open each saved file and check its labels, values, connections, and readability.
Place the class and object diagram files at the ZIP root. Name the archive Airline 2.4 LastName.zip.
Review the feedback, correct your diagrams, save, rebuild the ZIP, and resubmit as needed.
Keep your editable Violet files for later work.