zoukankan      html  css  js  c++  java
  • 软件工程 实践者的研究方法 第十章答案

    Problem:

    You have been asked to build one of the following systems:

    a. A network-based course registration system for your university.


    b. A Web-based order-processing system for a computer store.


    c. A simple invoicing system for a small business.


    d. An Internet-based cookbook that is built into an electric range or microwave. Select the system that is of interest to you and develop a processing narrative. Then use the grammatical parsing technique to identify candidate objects and classes.

    Answer:

    13981-10-1P-i1.png

    13981-10-1P-i2.png

    Problem:

    Develop a set of operations that are used within the classes identified in Problem 10.1.

    Answer:

    Operations associated with each class for a network based course registration system in a university are:-

    1. Student Class

    • printStudentInfo(): print the information details of a given student object.

    • calcAvgMarks(): calculate the average marks of the student based on all the marks that student has obtained in all the courses he had taken.

    • register(): Register student in the university and call enrollInCourse() repeatedly for each course the student prescribes to.

    • enrollInCourse(): Enroll student in the specified course.

    • calcBill(): Calculate the bill according to the fees of each course that student has prescribed to.

    2. Professor Class

    • printProfessorInfo(): print the information details of a given Professor.

    • register(): Register the Professor in the university and call teachesCourse() repeatedly to assign courses to the Professor.

    • teachesCourse(): Assigns a course to a professor, which he’ll teach.

    3. Course Class

    • printCourseInfo():print the information details of a given Course.

    • teachesCourse(): Assigns a course to a professor, which he’ll teach.

    4. CoursesTaken Class

    • allCoursesWithStudent(): Print all courses information taken by a student.

    • allStudentsInCourse (): Print all students in a course.

    • courseTaughtbyProfessor(): Print all the courses taught by a given professor.

    5. Section Class

    • addStudent(): Add a student to a section for a course.

    • dropStudent(): Drop a student from a section for a course.

    Problem:

    Develop a class model for the PHTRS system present in Problem 9.5.

    Answer:

    The department of public works for a city has decided to develop a web-based Pot Hole Tracking and Repair System (PHTRS). The class model for PHTRS system could look like:-

    Picture 1

    Figure 1: Class model for PHTRS system

    Problem:

    Write a template-based use case for the SafeHome home management system described informally in the sidebar following Section 10.4.

    Answer:

    A template based use case for the SafeHome home management system, described in section 10.4 of the book, can be:-

    Use Case

    SafeHome home management function.

    Description

    It controls electronic devices with wireless interface controllers.

    Actors

    Home owner, home management interface, electronic devices.

    Assumption

    Interface reports are always recorded.

    Steps

    1. Install the SafeHome home management system.

    2. Configure the system.

    3. Input password for remote login later.

    4. Select the device from the floor plan and configure setting to control it. For ex. Lights on off, temp of heating etc.

    5. Set the entire house for various situation like home, away, m=long travel etc.

    Variation

    Interface for mobile devices.

    Non-functional

    Optional

    Issues

    Wireless interfacing for all the various hardware devices from different companies and using different technologies.

    Problem:

    Develop a complete set of CRC model index cards on the product or system you chose as part of Problem 10.1.

    Answer:

    13981-10-5P-i1.png

    Problem:

    Conduct a review of the CRC index cards with your colleagues. How many additional classes, responsibilities, and collaborators were added as a consequence of the review?

    Answer:

    13981-10-6P-i1.png

    Problem:

    What is an analysis package and how might it be used?

    Answer:

    Analysis package:

    In a software engineering, various elements of the analysis model such as use cases, analysis classes are categorized in a manner that packages them as a grouping. This is called an analysis package

    To build a software, lot of classes are there which fall in one category and other classes fall in other categories. Thus, classes that come under a category are grouped under a name, that is called an analysis package

    An analysis package is represented shown in figure:

    C:\Users\ruchi.sharma\Desktop\analysis package.png

    Analysis package

    +, -, and # are access specifiers for public, private and protected respectively.is for

    Uses:

    The analysis packages are used to derive the requirements.


    Solutions Chapter 10: REQUIREMENTS MODELING: CLASS-BASED METHODS

     

     

    10.1) Be certain to emphasize the fact that all data-objects and relationships MUST be customer visible. Attributes should be reviewed to be certain that they properly reflect the requirements of the system.

     

    10.2) Answers will vary

     

    10.3) Answers will vary

     

    10.4) Answers will vary

     

    10.5) Answers will vary

     

    10.6) Answers will vary

     

    10.7) The various elements of the analysis model (e.g., use-cases, analysis classes) are categorized in a manner that packages them as a grouping—called an analysis package. To illustrate the use of analysis packages, consider the video game. As the analysis model for the video game is developed, a large number of classes are derived.

     

  • 相关阅读:
    Java学习:线程实现方式
    Java学习:异常的概念
    HDFS 其他命令---fsck
    Linux 常用命令
    Linux命令注释—HDFS运维
    大数据简介
    FusionInsight大数据开发---Oozie应用开发
    FusionInsight大数据开发---Flume应用开发
    FusionInsight大数据开发---Streaming应用开发
    FusionInsight大数据开发---Redis应用开发
  • 原文地址:https://www.cnblogs.com/mikecracker/p/14315513.html
Copyright © 2011-2022 走看看