讲解:starUML、Java、Java、diagramPython|Matlab

Extra Lab RequirementsUse starUML to draw class diagrams for the exercises below. Have starUML generate theJava 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 theexercises, and highlight them with different kinds of underlines or colors. For each exercise, put the corresponding class diagram (as a picture) under thehighlighted description of the exercise.2. The generated Java code (.java). Create a new folder for each exercise and put the Java code into thecorresponding folder.3. You are supposed to submit a compressed .zip file containing the followingdocuments (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 .mdjfile using the File → Save menu, and you can create a picture of it using the File → ExportDiagram 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 tea代写starUML、代做Java设计、Java编程语言调试、chers or security guards. Each student has a student ID, adormitory number, a major, and a home address. Each teacher has an office number, a staff IDnumber, and an office phone number. Each security guard has a staff ID number. Some teacherscan 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, oneprofessor can have 4 TAs. A college can have many students and many professors, but eachstudent 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) whichare of two kinds: students or teachers. There are two types of students: undergraduate studentsand 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 hasbeen borrowed. The library has the following rules:1. All users can search for books2. 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 youknow which books you have, but from a book it is not possible to find out which undergraduatestudent or graduate student or teacher has borrowed it.转自:http://www.3daixie.com/contents/11/3444.html

你可能感兴趣的:(讲解:starUML、Java、Java、diagramPython|Matlab)