1 COLLEGE OF ENGINEERING AND APPLIED SCIENCES DEPARTMENT OF COMPUTER SCIENCE ICSI201 Introduction to Computer Science Project 05 Created by Qi Wang (click here and here the recordings.) Table of...

1 answer below »
add some comments ,no mistakes pleasepdf attached


1 COLLEGE OF ENGINEERING AND APPLIED SCIENCES DEPARTMENT OF COMPUTER SCIENCE ICSI201 Introduction to Computer Science Project 05 Created by Qi Wang (click here and here the recordings.) Table of Contents Part I: General project information ……………………………………………………………………………………… 02 Part II: Project grading rubric……………………………………………………………………………………………….. 03 Part III: Examples on how to complete a project from start to finish …………………………………… 04 Part IV: A. How to test a software design? …………………………………………………………………………….06 B. Project description ……………………………………………………………………………………………… 07 https://albany.zoom.us/rec/share/f6zpLFzWFWHl2WEAXwrU-63zdRuhiMOevfMYgmmwuJegaAtdalZYF0M9NOgaNGSO.xyHHA4IEKOJWmAk8?startTime=1591386372000 https://albany.zoom.us/rec/share/VIUN828eLGCqUlV3yjvhequrjotSjhf4ahJw93L5iG7y2FQf07lMDsALrQ-3fvTZ.f1Rpdmbm6FP_UbAm?startTime=1591389144000 2 Part I: General Project Information • All projects are individual projects unless it is notified otherwise. • All projects must be submitted via Blackboard. No late projects or e-mail submissions or hard copies will be accepted. • Two submission attempts will be allowed on Blackboard. Only the last attempt will be graded. • Work will be rejected with no credit if  The project is late.  The project is not submitted properly (wrong files, not in required format, etc.). For example, o The submitted file can’t be opened. o The submitted work is empty or wrong work. o Other issues.  The project is a copy or partial copy of others' work (such as work from another person or the Internet). • Students must turn in their original work. Any cheating violation will be reported to the college. Students can help others by sharing ideas, but not by allowing others to copy their work. • Documents to be submitted as a zipped file:  UML class diagram(s) – created with Violet UML or StarUML  Java source file(s) with Javadoc style inline comments – (Java classes created with eclipse.)  Supporting files if any (For example, files containing testing data.) • Students are required to submit a design, all error-free source files with Javadoc style inline comments, and supporting files. Lack of any of the required items will result in a really low credit or no credit. • Your TA will grade, and then post the feedback and the grade on Blackboard if you have submitted it properly and on time. If you have any questions regarding the feedback or the grade, please reach out to the TA first. You may also contact the instructor for this matter. 3 Part II: Project grading rubric* (More information is included in the table on next page.) Components Max points UML Design (See an example in part III.) Max. 20 points Javadoc Inline comments (See an example in part III.) Max. 10 points The rest of the project Max. 50 points All projects will be evaluated based upon the following software development activities. Analysis: • Does the software meet the exact specification / customer requirements? • Does the software solve the exact problem? Design: • Is the design efficient? Code: • Are there errors? • Are code conventions followed? • Does the software use the minimum computer resource (computer memory and processing time)? • Is the software reusable? • Are comments completely written in Javadoc format? a. Class Javadoc comments must be included before a class header. b. Method Javadoc comments must be included before a method header. c. More inline comments (in either single line format or block format) must be included inside each method body. d. All comments must be completed in correct format such as tags, indentation etc. Debug/Testing: 1. Are there bugs in the software? Documentation: 2. Complete all documentations that are required. Part III: Examples on how to complete a project from start to finish To complete a project, the following steps of a software development cycle should be followed. These steps are not pure linear but overlapped. Analysis-design-code-test/debug-documentation. 1) Read project description to understand all specifications(Analysis). 2) Create a design (an algorithm for method or a UML class diagram for a class) (Design) 3) Create Java programs that are translations of the design. (Code/Implementation) 4) Test and debug, and (test/debug) 5) Complete all required documentation. (Documentation) The following shows a sample design. 4 The corresponding source codes with inline Javadoc comments are included below. import java.util.Random; /** * Representing a dog with a name. * @author Qi Wang * @version 1.0 */ public class Dog{ /** * The name of this dog */ private String name; /** * Constructs a newly created Dog object that represents a dog with an empty name. */ public Dog(){ this(""); } /** * Constructs a newly created Dog object with a name. * @param name The name of this dog */ public Dog(String name){ this.name = name; } /** * Returns the name of this dog. * @return The name of this dog */ public String getName(){ return this.name; } /** * Changes the name of this dog. * @param name The name of this dog */ public void setName(String name){ this.name = name; } /** * Returns a string representation of this dog. The returned string contains the type of * this dog and the name of this dog. * @return A string representation of this dog */ public String toString(){ TAB TAB TAB open { open { TAB Class comments must be written in Javadoc format before the class header. A description of the class, author information and version information are required. Comments for fields are required. Method comments must be written in Javadoc format before the method header. the first word must be a capitalized verb in the third person. Use punctuation marks properly. A description of the method, comments on parameters if any, and comments on the return type if any are required. A Javadoc comment for a formal parameter consists of three parts: - parameter tag, - a name of the formal parameter in the design , (The name must be consistent in the comments and the header.) - and a phrase explaining what this parameter specifies. A Javadoc comment for return type consists of two parts: - return tag, - and a phrase explaining what this returned value specifies 5 return this.getClass().getSimpleName() + ": " + this.name; } /** * Indicates if this dog is "equal to" some other object. If the other object is a dog, * this dog is equal to the other dog if they have the same names. If the other object is * not a dog, this dog is not equal to the other object. * @param obj A reference to some other object * @return A boolean value specifying if this dog is equal to some other object */ public boolean equals(Object obj){ //The specific object isn’t a dog. if(!(obj instanceof Dog)){ return false; } //The specific object is a dog. Dog other = (Dog)obj; return this.name.equalsIgnoreCase(other.name); } } More inline comments can be included in single line or block comments format in a method. 6 A. How to test a software design? There can be many classes in a software design. 1. First, create a UML class diagram containing the designs of all classes and the class relationships (For example, is-a or dependency). 2. Next, test each class separately. Convert each class in the diagram into a Java program. When implementing each class, a driver is needed to test each method included in the class design. In the driver program, i. Use the constructors to create instances of the class(If a class is abstract, the members of the class will be tested in its subclasses.). For example, the following creates Die objects. Create a default Dog object. Dog firstDog = new Dog(); Create a Dog object with a specific name. Die secondDog = new Dog(“Sky”); ii. Use object references to invoke the instance methods. If an instance method is a value-returning method, call this method where the returned value can be used. For example, method getName can be called to return a copy of firstDog’s face value. String firstDogName; … firstDogName = firstDog.getName(); You may print the value stored in firstDogName to verify. iii. If a method is a void method, invoke the method that simply perform a task. Use other method
Answered 3 days AfterApr 29, 2021

Answer To: 1 COLLEGE OF ENGINEERING AND APPLIED SCIENCES DEPARTMENT OF COMPUTER SCIENCE ICSI201 Introduction to...

Vaishnavi R answered on May 02 2021
141 Votes
New folder/greynodes assignment/.classpath

    
        
            
        
    
    
    
New folder/greynodes assignment/.project

     greynodes assignment
    
    
    
    
        
             org.eclipse.jdt.core.javabuilder
            
            
        
    
    
         org.eclipse.jdt.core.javanature
    
New folder/greynodes assignment/.settings/org.eclipse.jdt.core.prefs
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=15
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=15
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
org.eclipse.jdt.core.compiler.release=enabled
org.eclipse.jdt.core.compiler.source=15
New folder/greynodes assignment/bin/Circle.class
New folder/greynodes assignment/bin/Driver.class
New folder/greynodes assignment/bin/HelperClass.class
New folder/greynodes assignment/bin/InvalidTriangleException.class
New folder/greynodes assignment/bin/Rectangle.class
New folder/greynodes assignment/bin/Shape.class
New folder/greynodes assignment/bin/shapes.txt
Rectangle
red rectangle
12.0
34.0
Rectangle
square
12.0
12.0
Triangle
right triangle
3.0
4.0
5.0
Triangle
right triangle
3.0
4.0
1.0
Circle
red circle
2.5
Rectangle
blue rectangle
12.5
34.6
Rectangle
square
11.0
11.0
Triangle
right triangle
4.0
3.0
5.0
Triangle
right triangle
3.0
1.0
4.0
Circle
blue circle
4.5
Rectangle
white rectangle
15.0
30.5
Rectangle
square
15.0
15.0
Triangle
right triangle
3.0
5.0
4.0
Triangle
right triangle
1.0
4.0
3.0
Circle
red circle
7.5
New folder/greynodes assignment/bin/Triangle.class
New folder/greynodes assignment/src/Circle.java
New folder/greynodes assignment/src/Circle.java
public class Circle extends Shape {
    private double radius;
    double pi = 3.14;
    public Circle() {
        this.name = "Circle";
        this.radius = 1.0;
    }
// 
 Initializes new object with name and its variables with suitable value
    public Circle(String name, double r) {
        this.name = name;
        this.radius = r;
    }
    // returns value of radius
    public double getRadius() {
        return radius;
    }
    // sets value of radius
    public void setRadius(double radius) {
        this.radius = radius;
    }
    // returns area of circle
    @Override
    public double area() {
        return 2*pi*this.radius;
    }
    // checks if objects are equal and returns true if they are 
    @Override
    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof Circle)) {
            return false;
        }
        return true;
    }
//  return attributes and method values of circle
    @Override
    public String toString() {
        return String.format(this.name + " with radius " + this.radius +" area is "+ this.area());
    }
}
New folder/greynodes assignment/src/Driver.java
New folder/greynodes assignment/src/Driver.java
import java.io.FileNotFoundException;
public class Driver {
  public static void main(String[] args) throws FileNotFoundException {
      HelperClass hc = new HelperClass();
      hc.start();
  }
}
New folder/greynodes assignment/src/HelperClass.java
New folder/greynodes assignment/src/HelperClass.java
import java.io.*;
import java.util.*;
public class HelperClass {

    public static void display(ArrayList shapes) {
        for(int i=0; i        {
            System.out.println(shapes.get(i).toString());
        }

    }
    public static void start() throws FileNotFoundException {
        ArrayList shapes= new ArrayList();
        shapes = create(shapes);
        display(shapes);

    }

    public static ArrayList create(ArrayList shapes) throws FileNotFoundException{
        String path = "E:\\programs\\eclipse\\ecplise-workspace\\greynodes assignment\\src\\shapes.txt";
        try (Scanner fileScan = new Scanner(
                new FileReader(new File(path)))) {
            while(fileScan.hasNext()) {
                String type = fileScan.nextLine();
                if(type.equals("Rectangle")) {
                    String name = fileScan.nextLine();
                    double l = fileScan.nextDouble();
                    double w = fileScan.nextDouble();
 
//                  System.out.println("rect found");
                    Rectangle r = new Rectangle(name,l,w);
                    shapes.add(r);
 
                }
                else if(type.equals("Circle")) {
                    String name = fileScan.nextLine();
                    double r = fileScan.nextDouble();
//                  System.out.println("circle found");
                    Circle c = new Circle(name,r);
                    shapes.add(c);
                }
                else if(type.equals("Triangle")) {
                    String name = fileScan.nextLine();
                    double s1 = fileScan.nextDouble();
                    double s2 = fileScan.nextDouble();
                    double s3 = fileScan.nextDouble();
 
//                  System.out.println("triangle found");
                    Triangle t = new Triangle(name,s1,s2,s3);
                    shapes.add(t);
 
                }
            }
        }
        catch (IOException ex){
            ex.printStackTrace();
        } 


        return shapes;
    }
}
New folder/greynodes assignment/src/InvalidTriangleException.java
New folder/greynodes assignment/src/InvalidTriangleException.java
public class InvalidTriangleException extends Exception{
    public InvalidTriangleException(String msg){
        super(msg);
    }
}
New folder/greynodes assignment/src/Rectangle.java
New folder/greynodes assignment/src/Rectangle.java
public class Rectangle extends Shape {
    private double length;
    private double width;
//  Initializes new object with name and its variables with suitable value
    public Rectangle() {
        this.name = "Rectangle";
        this.length = 1.0;
        this.width = 1.0;
    }
//  Initializes new object with name and its variables with suitable value
    public Rectangle(String name, double length, double width) {
        this.name = name;
        this.length = length;
        this.width = width;
    }
//  return length of rectangle
    public double getLength() {
        return length;
    }
//  sets length of rectangle
    public void setLength(int length) {
        this.length = length;
    }
//  return width of rectangle
    public double getWidth() {
        return width;
    }
//  sets width of rectangle
    public void setWidth(int width) {
        this.width = width;
    }
//  return area of rectangle
    @Override
    public double area() {
        return length * width;
    }
    // checks if objects are equal and returns true if they are 
    @Override
    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof Rectangle)) {
            return false;
        }
        return true;
    }
//  return attributes and method values of rectangle
    @Override
    public String toString() {
        return String.format(this.name + " with length " + this.length + " and  width " + this.width +" area is "+ this.area());
    }
}
New folder/greynodes assignment/src/Shape.java
New folder/greynodes assignment/src/Shape.java
public abstract class Shape {
    String name;
//  Initializes new object with name and its variables with suitable value
    Shape() {
        this.name = "shape";
    }
// returns name of shape object
    public String getName() {
        return this.name;
    }
    // sets name of shape object
    public void setName(String name) {
        this.name = name;
    }
    public abstract double area();
    // checks if objects are equal and returns true if they are
    @Override
    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof Shape)) {
            return false;
        }
        return true;
    }
//    return attributes of shape class
    @Override
    public String toString() {
        return String.format(name);
    }
}
New folder/greynodes assignment/src/shapes.txt
Rectangle
red rectangle
12.0
34.0
Rectangle
square
12.0
12.0
Triangle
right triangle
3.0
4.0
5.0
Triangle
right triangle
3.0
4.0
1.0
Circle
red circle
2.5
Rectangle
blue rectangle
12.5
34.6
Rectangle
square
11.0
11.0
Triangle
right triangle
4.0
3.0
5.0
Triangle
right triangle
3.0
1.0
4.0
Circle
blue circle
4.5
Rectangle
white rectangle
15.0
30.5
Rectangle
square
15.0
15.0
Triangle
right triangle
3.0
5.0
4.0
Triangle
right triangle
1.0
4.0
3.0
Circle
red circle
7.5
New folder/greynodes assignment/src/Triangle.java
New folder/greynodes assignment/src/Triangle.java
public class Triangle extends Shape {
    private double sideOne;
    private double sideTwo;
    private double sideThree;
//  Initializes new object with name and its variables with suitable value
    public Triangle() {
        this.name = "Triangle";
        this.sideOne = 1.0;
        this.sideTwo = 1.0;
        this.sideThree = 1.0;
    }
//  Initializes new object with name and its variables with suitable value
    public Triangle(String name, double s1, double s2, double s3) {
        this.name = name;
        try {
            if (isValid(s1, s2, s3)) {
                this.sideOne = s1;
                this.sideTwo = s2;
                this.sideThree = s3;
            } else {
                throw new InvalidTriangleException("triangle not possible");
            }
        } catch (Exception e) {
            System.out.println(e.getMessage());
        }
    }
//  return side of triangle
    public double getSideOne() {
        return sideOne;
    }
    // sets side of triangle
    public void setSideOne(double sideOne) {
        try {
            if (isValid(sideOne, this.sideTwo, this.sideThree)) {
                this.sideOne = sideOne;
            } else {
                throw new InvalidTriangleException("triangle not possible");
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
//  return side of triangle
    public double getSideTwo() {
        return sideTwo;
    }
// sets side of triangle
    public void setSideTwo(double sideTwo) {
        try {
            if (isValid(this.sideOne, sideTwo, this.sideThree)) {
                this.sideTwo = sideTwo;
            } else {
                throw new InvalidTriangleException("triangle not possible");
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
//  return side of triangle
    public double getSideThree() {
        return sideThree;
    }
    // sets side of triangle
    public void setSideThree(double sideThree) {
        try {
            if (isValid(this.sideOne, this.sideTwo, sideThree)) {
                this.sideThree = sideThree;
            } else {
                throw new InvalidTriangleException("triangle not possible");
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
//  return area of triangle
    @Override
    public double area() {
        double p = (this.sideOne + this.sideTwo + this.sideThree) / 2;
        return Math.sqrt(p * (p - this.sideOne) * (p - this.sideTwo) * (p - this.sideThree));
    }
    // checks if valid triangle is possible with given sides, returns true if it is possible
    public boolean isValid(double s1, double s2, double s3) {
        if (((s1 + s2) <= s3) || ((s3 + s2) <= s1) || ((s1 + s3) <= s2)) {
            return false;
        }
        return true;
    }
//  return attributes and method values of triangle
    @Override
    public String toString() {
        return String.format(this.name + " with sides" + this.sideOne + ", "+this.sideTwo + ", "+ this.sideThree +" area is "+ this.area());
    }

    // checks if objects are equal and returns true if they are 
    @Override
    public boolean equals(Object o) {
        if(o==this)
        {
            return true;
        }

        if(!(o instanceof Triangle)) {
            return false;
        }
        return true;
    }
}
New folder/uml.mdj
{
    "_type": "Project",
    "_id": "AAAAAAFF+h6SjaM2Hec=",
    "name": "Untitled",
    "ownedElements": [
        {
            "_type": "UMLModel",
            "_id": "AAAAAAFF+qBWK6M3Z8Y=",
            "_parent": {
                "$ref": "AAAAAAFF+h6SjaM2Hec="
            },
            "name": "Model",
            "ownedElements": [
                {
                    "_type": "UMLClassDiagram",
                    "_id": "AAAAAAFF+qBtyKM79qY=",
                    "_parent": {
                        "$ref": "AAAAAAFF+qBWK6M3Z8Y="
                    },
                    "name": "Main",
                    "defaultDiagram": true,
                    "ownedViews": [
                        {
                            "_type": "UMLClassView",
                            "_id": "AAAAAAF5LHi7W4hPoWM=",
                            "_parent": {
                                "$ref": "AAAAAAFF+qBtyKM79qY="
                            },
                            "model": {
                                "$ref": "AAAAAAF5LHi7WohN2RU="
                            },
                            "subViews": [
                                {
                                    "_type": "UMLNameCompartmentView",
                                    "_id": "AAAAAAF5LHi7XIhQEXw=",
                                    "_parent": {
                                        "$ref": "AAAAAAF5LHi7W4hPoWM="
                                    },
                                    "model": {
                                        "$ref": "AAAAAAF5LHi7WohN2RU="
                                    },
                                    "subViews": [
                                        {
                                            "_type": "LabelView",
                                            "_id": "AAAAAAF5LHi7XIhRxiw=",
                                            "_parent": {
                                                "$ref": "AAAAAAF5LHi7XIhQEXw="
                                            },
                                            "visible": false,
                                            "font": "Arial;13;0",
                                            "left": 240,
                                            "top": -224,
                                            "height": 13
                                        },
                                        {
                                            "_type": "LabelView",
                                            "_id": "AAAAAAF5LHi7XIhSatw=",
                                            "_parent": {
                                                "$ref": "AAAAAAF5LHi7XIhQEXw="
                                            },
                                            "font": "Arial;13;3",
                                            "left": 245,
                                            "top": 31,
                                            "width": 135,
                                            "height": 13,
                                            "text": "Shape"
                                        },
                                        {
                                            "_type": "LabelView",
                                            "_id": "AAAAAAF5LHi7XIhTYfc=",
                                            "_parent": {
                                                "$ref": "AAAAAAF5LHi7XIhQEXw="
                                            },
                                            "visible": false,
                                            "font": "Arial;13;0",
                                            "left": 240,
                                            "top": -224,
                                            "width": 73.67724609375,
                                            "height": 13,
                                            "text": "(from Model)"
                                        },
                                        {
                                            "_type": "LabelView",
                                            "_id": "AAAAAAF5LHi7XIhUxv8=",
                                            "_parent": {
                                                "$ref": "AAAAAAF5LHi7XIhQEXw="
                                            },
                                            "visible": false,
                                            "font": "Arial;13;0",
                                            "left": 240,
                                            "top": -224,
                                            "height": 13,
                                            "horizontalAlignment": 1
                                        }
                                    ],
                                    "font": "Arial;13;0",
                                    "left": 240,
                                    "top": 24,
                                    "width": 145,
                                    "height": 25,
                                    "stereotypeLabel": {
                                        "$ref": "AAAAAAF5LHi7XIhRxiw="
                                    },
                                    "nameLabel": {
                                        "$ref": "AAAAAAF5LHi7XIhSatw="
                                    },
                                    "namespaceLabel": {
                                        "$ref": "AAAAAAF5LHi7XIhTYfc="
                                    },
                                    "propertyLabel": {
                                        "$ref": "AAAAAAF5LHi7XIhUxv8="
                                    }
                                },
                                {
                                    "_type": "UMLAttributeCompartmentView",
                                    "_id": "AAAAAAF5LHi7XIhVT+k=",
                                    "_parent": {
                                        "$ref": "AAAAAAF5LHi7W4hPoWM="
                                    },
                                    "model": {
                                        "$ref": "AAAAAAF5LHi7WohN2RU="
                                    },
                                    "subViews": [
                                        {
                                            "_type": "UMLAttributeView",
                                            "_id": "AAAAAAF5LHkZJYh6gbM=",
                                            "_parent": {
                                                "$ref": "AAAAAAF5LHi7XIhVT+k="
                                            },
                                            "model": {
                                                "$ref": "AAAAAAF5LHkY74h3sRI="
                                            },
                                            "font": "Arial;13;0",
                                            "left": 245,
                                            "top": 54,
                                            "width": 135,
                                            "height": 13,
                                            "text": "-name",
                                            "horizontalAlignment": 0
                                        },
                                        {
                                            "_type": "UMLAttributeView",
                                            "_id": "AAAAAAF5LHnqyIiDAhM=",
                                            "_parent": {
                                                "$ref": "AAAAAAF5LHi7XIhVT+k="
                                            },
                                            "model": {
                                                "$ref": "AAAAAAF5LHnqtYiAtDc="
                                            },
                                            "visible": false,
                                            "font": "Arial;13;0",
                                            "left": 365,
                                            "top": -43,
                                            "width": 134,
                                            "height": 13,
                                            "text": "+Attribute1",
                                            "horizontalAlignment": 0
                                        },
                                        {
                                            "_type": "UMLAttributeView",
                                            "_id": "AAAAAAF5LIl4i4+C0vU=",
                                            "_parent": {
                                                "$ref": "AAAAAAF5LHi7XIhVT+k="
                                            },
                                            "model": {
                                                "$ref": "AAAAAAF5LIl4gI90gwA="
                                            },
                                            "visible": false,
                                            "font": "Arial;13;0",
                                            "left": 245,
                                            "top": 69,
                                            "width": 135,
                                            "height": 13,
                                            "text": "+Port1",
                                            "horizontalAlignment": 0
                                        }
                                    ],
                                    "font": "Arial;13;0",
                                    "left": 240,
                                    "top": 49,
                                    "width": 145,
                                    "height": 23
                                },
                                {
                                    "_type": "UMLOperationCompartmentView",
                                    "_id": "AAAAAAF5LHi7XIhW5Ls=",
                                    "_parent": {
                                        "$ref": "AAAAAAF5LHi7W4hPoWM="
                                    },
                                    "model": {
                                        "$ref": "AAAAAAF5LHi7WohN2RU="
                                    },
                                    "subViews": [
                                        {
                                            "_type": "UMLOperationView",
                                            "_id": "AAAAAAF5LIBSt4kgKTM=",
                                            "_parent": {
                                                "$ref": "AAAAAAF5LHi7XIhW5Ls="
                                            },
                                            "model": {
                                                "$ref": "AAAAAAF5LIBSfokdSjM="
                                            },
                                            "font": "Arial;13;2",
                                            "left": 245,
                                            "top": 77,
                                            "width": 135,
                                            "height": 13,
                                            "text": "+area()",
                                            "horizontalAlignment": 0
                                        },
                                        {
                                            "_type": "UMLOperationView",
                                            "_id": "AAAAAAF5LID3L4kpsUI=",
                                            "_parent": {
                                                "$ref": "AAAAAAF5LHi7XIhW5Ls="
                                            },
                                            "model": {
                                                "$ref": "AAAAAAF5LID3HokmFDM="
                                            },
                                            "font": "Arial;13;0",
                                            "left": 245,
                                            "top": 92,
                                            "width": 135,
                                            "height": 13,
                                            "text": "+getName()",
                                            "horizontalAlignment": 0
                                        },
                                        {
                                            "_type": "UMLOperationView",
                                            "_id": "AAAAAAF5LIEyKYkw7ys=",
                                            "_parent": {
                                                "$ref": "AAAAAAF5LHi7XIhW5Ls="
                                            },
                                            "model": {
                                                "$ref": "AAAAAAF5LIEyIIktxxs="
                                            },
                                            "font": "Arial;13;0",
                                            "left": 245,
                                            "top": 107,
                                            "width": 135,
                                            "height": 13,
                                            "text": "+setName()",
                                            "horizontalAlignment": 0
                                        },
                                        {
                                            "_type": "UMLOperationView",
                                            "_id": "AAAAAAF5LIF2Cok3J10=",
                                            "_parent": {
                                                "$ref": "AAAAAAF5LHi7XIhW5Ls="
                                            },
                                            "model": {
                                                "$ref": "AAAAAAF5LIF13ok0WEE="
                                            },
                                            "font": "Arial;13;0",
                                            "left": 245,
                                            "top": 122,
                                            "width": 135,
                                            "height": 13,
                                            "text": "+equals()",
                                            "horizontalAlignment": 0
                                        },
                                        {
                                            "_type": "UMLOperationView",
                                            "_id": "AAAAAAF5LIGiwok+Yz0=",
                                            "_parent": {
                                                "$ref": "AAAAAAF5LHi7XIhW5Ls="
                                            },
                                            "model": {
                                                "$ref": "AAAAAAF5LIGiook7dK8="
                                            },
                                            "font": "Arial;13;0",
                                            "left": 245,
                                            "top": 137,
                                            "width": 135,
                                            "height": 13,
                                            "text": "+toString()",
                                            "horizontalAlignment": 0
                                        }
                                    ],
                                    "font": "Arial;13;0",
                                    "left": 240,
                                    "top": 72,
                                    "width": 145,
                                    "height": 83
                                },
                                {
                                    "_type": "UMLReceptionCompartmentView",
                                    "_id": "AAAAAAF5LHi7XIhXadI=",
                                    "_parent": {
                                        "$ref": "AAAAAAF5LHi7W4hPoWM="
                                    },
                                    "model": {
                                        "$ref": "AAAAAAF5LHi7WohN2RU="
                                    },
                                    "visible": false,
                                    "font": "Arial;13;0",
                                    "left": 120,
                                    "top": -112,
                                    "width": 10,
                                    "height": 10
                                },
                                {
                                    "_type": "UMLTemplateParameterCompartmentView",
                                    "_id": "AAAAAAF5LHi7XIhY0C8=",
                                    "_parent": {
                                        "$ref": "AAAAAAF5LHi7W4hPoWM="
                                    },
                                    "model": {
                                        "$ref": "AAAAAAF5LHi7WohN2RU="
                                    },
                                    "visible": false,
                                    "font": "Arial;13;0",
                                    "left": 120,
                                    "top": -112,
                                    "width": 10,
                                    "height": 10
                                }
                            ],
                            "font": "Arial;13;0",
                            "containerChangeable": true,
                            "left": 240,
                            "top": 24,
                            "width": 145,
                            "height": 146,
                            "nameCompartment": {
                                "$ref": "AAAAAAF5LHi7XIhQEXw="
                            },
                            "attributeCompartment": {
                                "$ref": "AAAAAAF5LHi7XIhVT+k="
                            },
                            "operationCompartment": {
                                "$ref": "AAAAAAF5LHi7XIhW5Ls="
                            },
                            "receptionCompartment": {
                                "$ref": "AAAAAAF5LHi7XIhXadI="
                            },
                            "templateParameterCompartment": {
                                "$ref": "AAAAAAF5LHi7XIhY0C8="
                            }
                        },
                        {
                            "_type": "UMLClassView",
                            "_id": "AAAAAAF5LX9BM5D2+NU=",
                            "_parent": {
                                "$ref": "AAAAAAFF+qBtyKM79qY="
                            },
                            "model": {
                                "$ref": "AAAAAAF5LX9BLpD0wo8="
                            },
                            "subViews": [
                                {
                                    "_type": "UMLNameCompartmentView",
                                    "_id": "AAAAAAF5LX9BNJD3GuY=",
                                    "_parent": {
                                        "$ref": "AAAAAAF5LX9BM5D2+NU="
                                    },
                                    "model": {
                                        "$ref": "AAAAAAF5LX9BLpD0wo8="
                                    },
                                    "subViews": [
                                        {
                                            "_type": "LabelView",
                                            "_id": "AAAAAAF5LX9BNJD4H0M=",
                                            "_parent": {
                                                "$ref": "AAAAAAF5LX9BNJD3GuY="
                                            },
                                            "visible": false,
                                            "font": "Arial;13;0",
                                            "left": -256,
                                            "top": 178,
                                            "height": 13
                                        },
                                        {
                                            "_type": "LabelView",
                                            "_id": "AAAAAAF5LX9BNJD5qFc=",
                                            "_parent": {
                                                "$ref": "AAAAAAF5LX9BNJD3GuY="
                                            },
                                            "font": "Arial;13;1",
                                            "left": 117,
                                            "top": 303,
                                            "width": 151,
                                            "height": 13,
                                            "text": "Triangle"
                                        },
                                        {
                                            "_type": "LabelView",
                                            "_id":...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here