Starting from:
$35

$29

Software Engineering I Solution

    • Do all exercises with your partner.
    • Clearly print the names of all participants in the first page of your assignment.
    • No hand-written answers allowed.
    • Absolutely no late assignments.
    • Your assignment should be turned in to D2L by all students in the team

Exercises Part A (15 pts)

For each of the following (pseudo) code snippets provide the UML class diagram.

1.
public class Container {
(2pts)

private Item [10] items;


}


public class Item {


private Container my_container;


}

2.   public class Access {
(3pts)

private List<DiskShare> entries;


}


public class BackupAccess {


private DiskShare x;


}


public class DiskShare {


private Access a;


private BackupAccess ba;


}

3.
public class AmazonAccount{
(5pts)

private string name;


private Category[] categories;


private Purchase[] entries;


}

public class Category {

private string name;

}

public class Purchase{

private string name;
private Category[] categories;
}
4.    public abstract class Store {
public abstract void store(Article[] articles);

public abstract Article[] retrieve();

(5pts)
}
public interface Accounting {


}
public class MSUStore extends Store implements Accounting{
public void store(Article[] articles) { Book b = new Book(); // other code …. }
public Article[] retrieve() { … }
}



Exerciss Part B (15 pts)

Write pseudo code to describe the following UML class diagram:

More products