CIS339 iLab 6 of 7: CRCs, Contracts, and Method Specifications

profileTUTOR SOPHIA
 (Not rated)
 (Not rated)
Chat

iLab Overview

Scenario/Summary

The design phase of the SRS project is in full swing and every developer on the team is assigned a group of packages to work on and to complete the design details of the classes in the package. To help speed up the design process, you—as the software architect of the project—were assigned the task of providing a sample method contract and a sample method specification to demonstrate to your team how these two documents are developed.

You decided to use the CourseList and the Course classes for your demonstrations. The CourseList class maintains and populates the current list of courses that the end user is working with while registering for clases. You will demonstrate the contract and the specification of the GetCourseByCourseID() of the CourseList class.

The GetCourseByCourseID() method searches the current list of courses for a course whose CourseID matches the ID supplied to the method. If a matched course is found, it is returned by the GetCourseByCourseID() method; otherwise a null value is returned, indicating there are no matching courses.

Deliverables

NOTE

Submit your assignment to the Dropbox, located at the top of this page. For instructions on how to use the Dropbox, read these step-by-step instructions.

(See the Syllabus section "Due Dates for Assignments & Exams" for due dates.)

1Method contract of the GetCourseByCourseID() method of the CourseList class

2Method specification of the GetCourseByCourseID() method of the CourseList class

Remember This!

Connect to the iLab here.

Lab Steps

 

STEP 1: Create a Public Method Contract

1Download and review the CRC Card for the CourseList class, the Maintain Course Sequence Diagram, and the Class Diagram to prepare for your deliverables this week.

2Download the Method Contract Template and use it for your deliverables this week.

3Create the method contract for the GetCourseByCourseID() method of the CourseList class.

4Explain your work and the decisions you made to arrive at your proposed solution.

STEP 2: Create a Method Specification

1Download the Method Specification TEMPLATE and use it for your deliverables this week.

2Create the method specification for the GetCourseByCourseID() method of the CourseList class.

3Explain your work and the decisions you made to arrive at your proposed solution.

STEP 3: Save and Upload

Copy and paste all assignments (method contract and method specification) into one Word document. Save your document with the file name CIS339_Lab6_YourName.

 

Submit your assignment to the Dropbox, located at the top of this page. For instructions on how to use the Dropbox, read these step-by-step instructions.

    • 8 years ago
    PERFECT ANSWER
    NOT RATED

    Purchase the answer to view it

    blurred-text
    • attachment
      lab_6.docx