### Create a StudySoup account

#### Be part of our community, it's free to join!

Already have a StudySoup account? Login here

# Introduction to Software Engineering CS 350

ODU

GPA 3.7

### View Full Document

## 8

## 0

## Popular in Course

## Popular in ComputerScienence

This 17 page Class Notes was uploaded by Armani Kunde on Monday September 28, 2015. The Class Notes belongs to CS 350 at Old Dominion University taught by Jay Morris in Fall. Since its upload, it has received 8 views. For similar materials see /class/215309/cs-350-old-dominion-university in ComputerScienence at Old Dominion University.

## Reviews for Introduction to Software Engineering

### What is Karma?

#### Karma is the currency of StudySoup.

#### You can buy or earn more Karma at anytime and redeem it for class notes, study guides, flashcards, and more!

Date Created: 09/28/15

ProgTam 3 September 2005 CS 350 Assignment Kit for Program 3 Fall 2005 Version 11 subject to revision 1 2005 by Carnegie Mellon University Personal Software Process for Engineers Assignment Kit for Program 3 Overview Overview This assignment kit covers the following topics Section Program 3 Prerequisites Reading Chapters 6 Program 3 September 2005 2 2005 by Carnegie Mellon University Program 3 requirements Program 3 Using PSPZ write a program to numerically integrate a function using requirements Simpson s rule Use the t distribution as the function Thoroughly test the program At a minimum calculate the values for the t distribution integral for the values in Table 1 Expected values are also included in Table l Table 1 Program 3 September 2005 3 2005 by Carnegie Mellon University Numerical integration with Simpson s rule Overview Simpson s rule Program 3 Numerical integration is the process of determining the area under some function I M egrat i 9 a fund0 Numerical integration calculates this area by dividing it into vertical strips and summing their individual areas The key is to minimize the error in this approximation Simpson s rule can be used to integrate a symmetrical statistical distribution function over a speci ed range e g from 0 to some value 1 numiseg initial number of segments an even number W dnumiseg the segment width E the acceptable error eg 000001 Compute the integral value with the following equation bP N pampquotmfi iwpquotmfihiwpm 1135 1246 5 Compute the integral value again but this time with numiseg numiseg kl 6 If the difference between these two results is greater than E double numiseg and compute the integral value again Continue doing this until the difference between the last two results is less than E The latest result is the answer September 2005 4 Continued on nextpage 2005 by Carnegie Mellon University Numerical integration with Simpson s rule Continued A simple example Let s look at a simple function 7 where Fx 2X Note This example is a triangle The area of a triangle is baseheight 1 32 E48 16 In this example we can expand Simpson s rule W mm iszgei numisegrl p FO Z 4Fz39W Z 2Fz W Fx 1135 1246 to p F0 4F1 2F2 4F3 F4 and then substitute calculated values for the function F01 2X p0422446808824816 Program 3 September 2005 5 2005 by Carnegie Mellon University The t distribution Overview The t distribution is a very important statistical tool It is used instead of the normal distribution when the true value of the population variance is not known and must be estimated from a sample The shape of the t distribution is dependent on the number of points in your dataset As 11 gets large the t distribution approaches the normal distribution For lower values it has a lower central hump and fatter tails T probability density function 6 0 6 Using the In the PSP the t distribution is used in two ways We use the t distribution to t distribution in test the signi cance of a correlation We also use the t distribution to calculate the PSP the prediction interval when using PROBE methods A and B Continued on nextpage Program 3 September 2005 6 2005 by Carnegie Mellon University The t distribution Continued T distribution function Program 3 When numerically integrating the t distribution with Simpson s rule use the following function Falofl 2 7d0f1 Fx 2didL wow we of where dof degrees offreedom F is the gamma function The gamma function is Fx x lFx l where Fl l r12 5 Continued on nextpage September 2005 7 2005 by Carnegie Mellon University The t distribution Continued An example of Fx for integer values is FX X 1 calculating gamma f5 4 24 for an integer value An example of 9 7 7 1 if calculating gamma 2 2 2 for a noninteger value If zjgarg 2 2 2 2 2 1 m Nih w H Niq 96 NiUI NM 96 Niquot 96 ii i 0 Ln H 1 LN Program 3 September 2005 8 2005 by Carnegie Mellon University An example An example In this example we ll calculate the values for the t distribution integral from 0 to X11 with 9 degrees offreedom 1 First we ll set numiseg 10 any even number 2 W dnumiseg 1110 011 3 E 000001 4 dof 9 5 X 11 6 Compute the integral value with the following equation mm iszgn numisegrl p F0 Z 4F139W Z 2F139W Fx where 1135 1246 F 7d0f1 Fx d1dL dof It If of 7 We can solve the rst part of the equation 1alof1 24 2 d 0388035 dof 12Ff 53174 116317 The intermediate values for this are in the Table 2 2 2 1e Fl 1 X 1 7 1 L 2 dof F x Multiplier terms of dof dof 7r12FTj 0 0 1 1 0388035 038803 1 001423 1 011 100134 09933 0388035 038544 4 005653 2 022 100538 097354 0388035 037777 2 00277 3 033 10121 094164 0388035 036539 4 005359 4 044 102151 089905 0388035 034886 2 002558 5 055 103361 084765 0388035 032892 4 004824 6 066 10484 078952 0388035 030636 2 002247 7 077 106588 072688 0388035 028205 4 004137 8 088 108604 066185 0388035 025682 2 001883 9 099 11089 05964 0388035 023142 4 003394 10 11 113444 053221 0388035 020652 1 000757 Result 03500589 Table 2 Program 3 September 2005 9 2005 by Carnegie Mellon University An example Continued Example 8 Compute the integral value again but this time with numiseg 20 The continued new result is 035005864 9 We compare the new result to the old result 10 03500589 035005864 ltE 11 We can then return the value p 035005864 Program 3 September 2005 10 2005 by Carnegie Mellon University Assignment instructions Assignment Before starting program 3 review the toplevel PSPl process script below to instructions 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 PSPl Process Script Purpose To guide the development of modulelevel programs Entry Criteria Problem description PSPl 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 of this program Complete the Size Estimating template Use the PROBE method to estimate the required development time Enter the plan data in the Project Plan Summary form Complete the Time Recording log 2 Development Design the program Implement the design 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 template Completed Test Report template Completed PIP forms Completed Time and Defect Recording logs Continued on nextpage Program 3 September 2005 11 2005 by Carnegie Mellon University Assign ment instructions Continued Planning phase Plan program 3 following the PSPl planning phase and the PROBE estimating scripts PSPl Planning Script Purpose To guide the PSP planning process Entry Criteria Problem description PSPl Project Plan Summary form Size Estimating template Historical size and time data estimated and actual Time Recording log Step Activities Description 1 Program Produce or obtain a requirements statement for the program Requirements Ensure that the requirements statement is clear and unambiguous Resolve any questions 2 Size Produce a program conceptual design Use any format that you prefer Estimate Use the PROBE method to estimate the added and modified size of this program Complete the Size Estimating template and Project Plan Summary orm 3 Resource Use the PROBE method to estimate the time required to develop this Estimate program Using the To Date from the most recently developed program as a guide distribute the development time over the planned project phases Exit Criteria Documented requirements statement Program conceptual desi n Completed Size Estimating template Completed Project Plan Summary form with estimated program size and development time data Completed Time Recording log Verify that you have met all of the eXit criteria for the planning phase then have an instructor review your plan After your plan has been reviewed proceed to the development phase Continued on nextpage Program 3 September 2005 12 2005 by Carnegie Mellon University Assign ment instructions Continued Use the PROBE method to create size and resource estimates Purpose To guide the size and time estimating process using the PROBE method Entry Criteria Requirements statement Size Estimating template and instructions Size per item data for part types Time Recording log Historical size and time data General This script assumes that you are using added and modified size data as the sizeaccounting types for making size and time estimates If you choose some other sizeaccounting types replace every added and modified in this script with the sizeaccounting types of your choice Step Activities Description 1 Conceptual Design Review the 39 and produce a conceptual design 2 Parts Additions Follow the Size Estimating Template instructions to estimate the parts additions and the new reusable parts sizes 3 Base Parts and For the base program estimate the size of the base deleted modified Reused Parts and added code Measure andor estimate the side of the parts to be reused 4 Size Estimating If you have sufficient estimated proxy size and actual added and Procedure modified size data three or more points that correlate use procedure 4A If you do not have sufficient estimated data but have sufficient plan added and modified and actual added and modified size data three or more points that correlate use procedure 4B If you have insufficient data or they do not correlate use procedure 4C If you have no historical data use procedure 4D 4A Size EStlm ating Using the linearregression method calculate the o and l parameters Procedure 4A from the estimated proxy size and actual added and modified size data If the absolute value of o is not near 0 less than about 25 of the expected size of the new program or A is not near 10 between about 05 and 20 use procedure 4B Using the linearregression method calculate the o and l parameters from the plan added and modified size and actual added and modified size data If the absolute value of 0 is not near 0 less than about 25 of the 4B Size Estim ating Procedure 4B expected size of the new program or l is not near 10 between about 05 and 20 use procedure 4C 4C Size Estimating If you have any data on plan added and modified size and actual added and Procedure 4c modified size set o 0 and l actual total added and modified size to dateplan total added and modified size to date 4D Size Estimating If you have no historical data use your judgment to estimate added and Procedure 4D modified size continued Continued on nextpage Program 3 September 2005 13 2005 by Carnegie Mellon University Assign ment instructions Continued PROBE Estimating Script Continued Step Activities 39 quot 5 Time Estimating If you have sufficient estimated proxy size and actual development time Proce ure data three or more points that correlate use procedure 5A If you do not have sufficient estimated size data but have sufficient plan added and modified size and actual development time data three or more points that correlate use procedure 5B If you have insufficient data or they do not correlate use procedure 5C If you have no historical data use procedure 5D 5A Time Estimating Using the linearregression method calculate the 0 and l parameters Procedure 5A from the estimated proxy size and actual total development time data If 0 is not near 0 substantially smaller than the expected development time for the new program or l is not within 50 of lhistorical productivit use procedure 5B 5B Time Estimating Using the linearregression method calculate the 0 and l regression Procedure 5B parameters from the plan added and modified size and actual total development time data If 0 is not near 0 substantially smaller than the expected development time for the new program or l is not within 50 of lhistorical productivit use procedure 5C 5C Time Estimating If you have data on estimated 7 added and modified size and actual Procedure 5c development time set o 0 and A actual total development time to dateestimated 7 total added and modified size to date If you have data on plan 7 added and modified size and actual development time set 0 0 and l actual total development time to dateplan total added and modified size to date If you only have actual time and size data set o 0 and l actual total development time to dateactual total added and modified size to date 5D Time Estimating If you have no historical data use your judgment to estimate the Procedure 5D development time from the estimated added and modified size 6 Time and Size If you used regression method A or B calculate the 70 prediction Prediction Intervals intervals for the time and size estimates If you did not use the regression method or do not know how to calculate the prediction interval calculate the minimum and maximum development time estimate limits from your historical maximum and minimum productivit for the programs written to date Exit Criteria Completed estimated and actual entries for all pertinent size categories Completed PROBE Calculation Worksheet with size and time entries Plan and actual values entered on the Project Plan Summary Continued on ncxtpagc Program 3 September 2005 14 2005 by Carnegie Mellon University Assign ment instructions Continued Development Develop the program following the PSPl development phase script phase PSPl Development Script Purpose To guide the development of small programs Entry Criteria Requirements statement Project Plan Summary form with estimated program size and development time Time and Defect Recording logs Defect Type standard and Coding standard Step Activities Description 1 Design Review the requirements and produce a design to meet them Record in the Defect Recording log any requirements defects found Record time in the Time Recording log 2 Code Implement the design following the Coding standard Record in the Defect Recording log any requirements or design defects found Record time in the Time Recording log 3 Compile Compile the program until there are no compile errors Fix all defects found Record defects in the Defect Recording log Record time in the Time Recording log 4 Test Test until all tests run without error Fix all defects found Record defects in the Defect Recording log Record time in the Time Recording log Complete a Test Report template on the tests conducted and the results obtained Exit Criteria A thoroughly tested program that conforms to the Coding standard Completed Test Report template Completed Time and Defect Recording logs Verify that you have met all of the exit criteria for the development phase then proceed to the postmortem phase Continued on nextpage Program 3 September 2005 15 2005 by Carnegie Mellon University Assign ment instructions Continued Postmortem phase Conduct the postmortem following the PSPl postmortem script PSPl Postmortem Script Purpose To guide the PSP process Entry Criteria Problem description and requirements statement Project Plan Summary form with program size and development time data Completed Test Report template Completed Time and Defect Recording logs A tested and running program that conforms to the coding and size tandards Step Activities Description 1 Defect Recording Review the Project Plan Summary to verify that all of the defects found in each phase were recorded Using your best record any omitted defects 2 Defect Data Check that the data on every defect in the Defect Recording log are Consistency accurate and complete Verify that the numbers of defects injected and removed per phase are reasonable and correct Using your best correct any missing or incorrect defect data 3 Size Count the size of the completed program Determine the size of the base reused deleted modified added total added and modified and new reusable code Enter these data in the Project Plan Summary form 4 Time Review the completed Time Recording log for errors or omissions Using your best recollection correct any missing or incomplete time data Exit Criteria A thoroughly tested program that conforms to the coding and size measurement stan ar s Completed Test Report template Completed Project Plan Summa form Completed PIP forms describing process problems improvement suggestions and lessons learne Completed Time and Defect Recording logs Verify that you have met all of the eXit criteria for the PSPl postmortem phase then submit your assignment Continued on next page Program 3 September 2005 16 2005 by Carnegie Mellon University Assign ment instructions Continued Due dates Project plan preliminary estimates Sat Sept 24 Completed project code forms test data Thurs Sept 29 Submitting you When you ve completed the postmortem phase submit your assignment assignment package source code and test results to cs350 The order for the assignment package is PSPl Project Plan Summary form Test Report template PIP form Size Estimating template PROBE Calculation worksheet Time Recording log Defect Recording log source code Program 3 September 2005 17 2005 by Carnegie Mellon University

### BOOM! Enjoy Your Free Notes!

We've added these Notes to your profile, click here to view them now.

### You're already Subscribed!

Looks like you've already subscribed to StudySoup, you won't need to purchase another subscription to get this material. To access this material simply click 'View Full Document'

## Why people love StudySoup

#### "Knowing I can count on the Elite Notetaker in my class allows me to focus on what the professor is saying instead of just scribbling notes the whole time and falling behind."

#### "I signed up to be an Elite Notetaker with 2 of my sorority sisters this semester. We just posted our notes weekly and were each making over $600 per month. I LOVE StudySoup!"

#### "I was shooting for a perfect 4.0 GPA this semester. Having StudySoup as a study aid was critical to helping me achieve my goal...and I nailed it!"

#### "Their 'Elite Notetakers' are making over $1,200/month in sales by creating high quality content that helps their classmates in a time of need."

### Refund Policy

#### STUDYSOUP CANCELLATION POLICY

All subscriptions to StudySoup are paid in full at the time of subscribing. To change your credit card information or to cancel your subscription, go to "Edit Settings". All credit card information will be available there. If you should decide to cancel your subscription, it will continue to be valid until the next payment period, as all payments for the current period were made in advance. For special circumstances, please email support@studysoup.com

#### STUDYSOUP REFUND POLICY

StudySoup has more than 1 million course-specific study resources to help students study smarter. If you’re having trouble finding what you’re looking for, our customer support team can help you find what you need! Feel free to contact them here: support@studysoup.com

Recurring Subscriptions: If you have canceled your recurring subscription on the day of renewal and have not downloaded any documents, you may request a refund by submitting an email to support@studysoup.com

Satisfaction Guarantee: If you’re not satisfied with your subscription, you can contact us for further help. Contact must be made within 3 business days of your subscription purchase and your refund request will be subject for review.

Please Note: Refunds can never be provided more than 30 days after the initial purchase date regardless of your activity on the site.