DOC PREVIEW
ODU CS 350 - Study Notes

This preview shows page 1-2-3-4-5 out of 15 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 15 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 15 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 15 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 15 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 15 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 15 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Program 5 October 2005 1 © 2005 by Carnegie Mellon University/ODU CS 350: Assignment Kit for Program 5 Fall 2005 Version 1.2 (subject to change)Program 5 October 2005 2 © 2005 by Carnegie Mellon University/ODU CS 350: Intro to Software Engineering Assignment Kit for Program 5 Change Summary: From version 1.1: 1. Pg. 3, test data description for test cases 3 and 4. 2. Pg. 3, input data format. Overview Overview This assignment kit covers the following topics. Section See Page Prerequisites 2 Program 5 requirements 3 Significance 5 Prediction interval 6 Assignment instructions 7 Guidelines and evaluation criteria 15 Due dates 15 Prerequisites Reading • Chapter 12Program 5 October 2005 3 © 2005 by Carnegie Mellon University/ODU Program 5 requirements Program 5 requirements Input data Using PSP2.1, write a program to calculate the linear regression parameters 0β and 1β for a set of n pairs of data, • given an estimate, kx calculate an improved prediction, ky where kkxy10ββ+= • calculate the 70% prediction interval for that estimate Table 1 contains historical estimated and actual data for 10 programs. For program 11, the developer has estimated a proxy size of 386 LOC. Thoroughly test the program. At a minimum, run the following four test cases. • Test 1: Perform the required calculations defined above using estimated proxy size and actual added and modified size in Table 1. Use an estimates proxy size of kx = 386 in producing the improved estimate and prediction interval. • Test 2: Perform the required calculations defined above using estimated proxy size and actual development time in Table 1. Use an estimated proxy size of kx = 386 in producing the improved estimate and prediction interval. • Test 3: Perform the required calculations defined above using estimated proxy size and actual added and modified size for your programs 2-4. Use an kx = estimated proxy size for program 5. • Test 4: Perform the required calculations defined above using estimated proxy size and actual development time for your programs 2-4. Use an kx = estimated proxy size for program 5. Input should consist of history data as x-y pairs, followed by the xk value. The program should read from standard input (that is, use cin’s). Program Number Estimated Proxy Size Plan Added and Modified Size Actual Added and Modified Size Actual Development Hours 1 130 163 186 15.0 2 650 765 699 69.9 3 99 141 132 6.5 4 150 166 272 22.4 5 128 137 291 28.4 6 302 355 331 65.9 7 95 136 199 19.4 8 945 1206 1890 198.7 9 368 433 788 38.8 10 961 1130 1601 138.2 Table 1 Continued on next pageProgram 5 October 2005 4 © 2005 by Carnegie Mellon University/ODU Program 5 requirements, Continued Test Parameter Expected Value Actual ValueTest 1β0 -22.55253275 β1 1.727932426 ky 644.4293838 Range230.0017197 UPI (70%)-874.4311035 LPI (70%)414.427664 Test 2β0 -4.038881575 β1 0.16812665 ky60.85800528 Range27.55764748 UPI (70%)-88.41565276 LPI (70%)33.3003578 Test 3β0 n/a β1 n/a kyn/a Range n/a UPI (70%)- n/a LPI (70%) n/a Test 4β0 n/a β1 n/a kyn/a Range n/a UPI (70%)- n/a LPI (70%) n/a Table 2Program 5 October 2005 5 © 2005 by Carnegie Mellon University/ODU Prediction interval Prediction interval The prediction interval provides a likely range around the estimate. • A 70% prediction interval gives the range within which 70% of the estimates will fall. • It is not a forecast, only an expectation. • It only applies if the estimate behaves like the historical data. It is calculated from the same data used to calculate the regression parameters. Prediction interval procedure To calculate the prediction interval, use the following steps. 1. Calculate the Range for a 70% interval. 2. Calculate the UPI as %)70(Rangeyk+. 3. Calculate the LPI as %)70(Rangeyk−. The formula for calculating the prediction range is ()()()∑=−−++=niavgiavgkxxxxndoftRange12211,35.0σ where • x is your historical data • n is the number of historical data points • t(0.35, dof) is the value of x for a t distribution for n - 2 degrees of freedom and p = 0.35 The formula for calculating the standard deviation term is ()∑=−−⎟⎠⎞⎜⎝⎛−=niiixyn121021ββσ where • x, y are your historical data • n is the number of historical data pointsProgram 5 October 2005 6 © 2005 by Carnegie Mellon University/ODU Assignment instructions Assignment instructions Before starting program 5, review the top-level PSP2.1 process script below to ensure that you understand the “big picture” before you begin. Also, ensure that you have all of the required inputs before you begin the planning phase. PSP2.1 Process Script Purpose To guide the development of module-level programs Entry Criteria - Problem description - PSP2.1 Project Plan Summary form - Size Estimating template - Historical size and time data (estimated and actual) - Time and Defect Recording logs - Defect Type, Coding, and Size Measurement standards - Stopwatch (optional) Step Activities Description 1 Planning - Produce or obtain a requirements statement. - Use the PROBE method to estimate the added and modified size and the size prediction interval of this program. - Complete the Size Estimating template. - Use the PROBE method to estimate the required development time and the time prediction interval. - Complete a Task Planning template. - Complete a Schedule Planning template. - Enter the plan data in the Project Plan Summary form. - Complete the Time Recording log. 2 Development - Design the program. - Review the design, and fix and log all defects found. - Implement the design. - Review the code, and fix and log all defects found. - Compile the program, and fix and log all defects found. - Test the program, and fix and log all defects found. - Complete the Time Recording log. 3 Postmortem Complete the Project Plan Summary form with actual time, defect, and size data. Exit Criteria - A thoroughly tested program - Completed Project Plan Summary form with estimated and actual data - Completed Size Estimating and Task and Schedule Planning templates - Completed Design Review and Code Review checklists - Completed Test Report template - Completed PIP forms - Completed Time and Defect Recording logs Continued on next pageProgram 5 October 2005 7 © 2005 by Carnegie Mellon


View Full Document

ODU CS 350 - Study Notes

Download Study Notes
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Study Notes and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Study Notes 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?