首页 >
> 详细

Extra Lab Requirements

Use starUML to draw class diagrams for the exercises below. Have starUML generate the

Java code for you. Read and see what Java code looks like.

Submission:

1. A Microsoft Word report which contains your three class diagrams.

Copy-paste each of the three exercises below into your report.

Find the clues of classes, attributes, and methods in the descriptions of the

exercises, and highlight them with different kinds of underlines or colors.

For each exercise, put the corresponding class diagram (as a picture) under the

highlighted description of the exercise.

2. The generated Java code (.java).

Create a new folder for each exercise and put the Java code into the

corresponding folder.

3. You are supposed to submit a compressed .zip file containing the following

documents (replace “123456789” with your own student ID number):

A .docx file for the report: “Lab1_123456789.docx”;

Three .mdj StarUML files: “Lab1_123456789_1.mdj”, Lab1_123456789_2.mdj”,

and “Lab1_123456789_3.mdj”;

Three folders: “Java_123456789_1”, “Java_123456789_2”, and

“Java_123456789_3”;

Java files in each of the three folders mentioned just above.

Note: after you have created a class diagram using StarUML, you can save it in a StarUML .mdj

file using the File → Save menu, and you can create a picture of it using the File → Export

Diagram As → JPEG menu.

To generate the Java code from a UML diagram, follow these steps.

1. Use the Tools → Extension Manager menu to install the “Java” extension.

2. Restart StarUML.

3. Use the Tools → Java → Generate Code menu.

Exercise 1:

UIC is building a system for all the persons on campus. Each person has a mobile phone number.

Persons can be students or teachers or security guards. Each student has a student ID, a

dormitory number, a major, and a home address. Each teacher has an office number, a staff ID

number, and an office phone number. Each security guard has a staff ID number. Some teachers

can be mentors. For a mentor, we need to know the email address.

Exercise 2:

1. A college has two types of students: undergraduate students and graduate students.

2. A graduate student can be a TA.

3. The college also has two types of teachers: lecturers and professors.

One TA can help one lecturer or one professor. One lecturer can have at most 2 TAs, one

professor can have 4 TAs. A college can have many students and many professors, but each

student has only one college and each professor has only one college.

Exercise 3:

The UIC library has many books. The library has many users (represented as an interface) which

are of two kinds: students or teachers. There are two types of students: undergraduate students

and graduate students. Students have a student ID number and teachers have a staff ID number.

Books have an ISBN number and a status indicating whether the book is in the library or has

been borrowed. The library has the following rules:

1. All users can search for books

2. All users can borrow books.

3. All users can return books.

4. Undergraduate students can borrow at most 10 books.

5. Graduate students can borrow at most 20 books.

6. Teachers who worked in UIC for more than 5 years can borrow at most 30 books.

In addition, if you are an undergraduate student or a graduate student or a teacher then you

know which books you have, but from a book it is not possible to find out which undergraduate

student or graduate student or teacher has borrowed it.

联系我们

- QQ：99515681
- 邮箱：99515681@qq.com
- 工作时间：8:00-23:00
- 微信：codinghelp

- 4Cosc001w作业代做、Python程序语言作业调试、Python课程作 2019-11-20
- 代写csc 230作业、代做ascii留学生作业、Python，Java程序 2019-11-20
- Cmpt 361作业代写、代做system留学生作业、Java，C++编程语 2019-11-20
- 代做cs5783留学生作业、代写machine Learning作业、代写c 2019-11-20
- B365留学生作业代做、代写iris Data作业、代做r程序语言作业、代写 2019-11-20
- Inft 3033作业代做、代写c/C++编程语言作业、代做c++课程设计作 2019-11-20
- Cs610-101作业代写、Programming课程作业代做、C/C++, 2019-11-20
- Econ 385作业代做、R程序设计作业代写、代做r课程设计作业、Ols留学 2019-11-20
- Engg1330作业代做、代写programming作业、代写java编程语 2019-11-20
- 代写csv File作业、Dataset留学生作业代做、代写java，C++ 2019-11-20
- Web Scraping作业代做、代写media Website作业、Web 2019-11-19
- 代写module留学生作业、代写java课程设计作业、Java程序语言作业调 2019-11-19
- Cs 344留学生作业代做、C++编程作业调试、C++课程设计作业代写、代做 2019-11-19
- 代做econ 493作业、Data留学生作业代写、代做r实验作业、R编程设计 2019-11-19
- 代写cmpt 361作业、代做system留学生作业、代做python，C+ 2019-11-19
- Isa 414作业代写、R程序语言作业调试、R课程设计作业代做、代写canv 2019-11-19
- Mat 4378作业代做、代写categorical Data作业、代做r编 2019-11-19
- Stat 429作业代做、代写mathematics课程作业、代做r编程语言 2019-11-18
- 代做431 Quiz 2作业、R编程设计作业调试、R语言作业代写、代做dat 2019-11-18
- 代写mt5761留学生作业、代做statistical Modelling作 2019-11-18