SlideShare a Scribd company logo
1 of 14
Download to read offline
Program 1 June 2012 1  2012 by Carnegie Mellon University
Assignment Kit for
Program 1
________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
PSP Fundamentals
The Software Engineering Institute (SEI)
is a federally funded research and development center
sponsored by the U.S. Department of Defense and
operated by Carnegie Mellon University.
This material is approved for public release.
Distribution limited by the Software Engineering Institute to attendees.
Program 1 June 2012 2  2012 by Carnegie Mellon University
PSP Fundamentals
Assignment Kit for Program 1
Overview
Topics This assignment kit covers the following topics.
Section See Page
Prerequisites 2
Program 1 requirements 3
Linked lists overview 4
Mean and standard deviation overview 5
Using mean and standard deviation in the PSP 5
Calculating mean and standard deviation 5
A mean and standard deviation example 6
Assignment instructions 8
Guidelines and evaluation criteria 12
PSP0 Grading Checklist 13
Prerequisites Reading
• Chapters 1 and 2
Program 1 June 2012 3  2012 by Carnegie Mellon University
Program 1 requirements
Program 1
requirements
Using PSP0, write a program to calculate the mean and standard deviation of a
set of n real numbers.
Your program can read the n real numbers from a file. If necessary, you can
read the n real numbers from the keyboard, or some other source, but this is not
recommended.
Use a linked list to store the n numbers for the calculations. If necessary, a
variable or static array(s), database, or other data structure(s) may be used to
hold the data.
Thoroughly test the program. At least two tests should use the data in the
columns of Table 1. Expected results are provided in Table 2.
Column 1 Column 2
Estimated Proxy
Size
Development
Hours
160 15.0
591 69.9
114 6.5
229 22.4
230 28.4
270 65.9
128 19.4
1657 198.7
624 38.8
1503 138.2
Table 1
Test Expected Value Actual Value
Mean Std. Dev Mean Std. Dev
Table 1: Column 1 550.6 572.03
Table 1: Column 2 60.32 62.26
Table 2
Program 1 June 2012 4  2012 by Carnegie Mellon University
Linked lists
Overview Linked lists are a common abstract data type used to maintain collections of data.
Linked lists are implemented with pointers.
A linked list typically has two components.
• list head
• list node(s)
HEAD
NODE 1 NODE 2 NODE n... NODE n-1
Pointers to next node
Pointer
to first node
Pointer
to last node
Data Data Data Data
null
Some of the options for linked list structure are
• the list head can point to the first node, last node, or both
• a list node can point to the next node, prior node, or both
Null pointers are often used to indicate an empty list or the end of the list.
Typical operations on a linked list include
• add node
• remove node
• next node
• prior node
Program 1 June 2012 5  2012 by Carnegie Mellon University
Mean and standard deviation
Overview The mean is the arithmetic average of a set of data. The mean is typically used
to locate an unbiased center (expectation value) for a data set. Other averages
include the middle value (median), and the most common value (mode). With
skewed distributions, the mean is especially useful because the more intuitive
median and mode can be misleading. In this exercise, average will be computed
as the mean. The mean is the average of a set of data. The average is the most
common measure of location for a set of numbers. The average locates the
center of the data.
Standard deviation is a measure of the spread or dispersion of a set of data. The
more widely the values are spread out, the larger the standard deviation. For
example, say we have two separate lists of exam results from a class of 30
students; one ranges from 31% to 98%, the other from 82% to 93%. The
standard deviation would be larger for the results of the first exam.
Using mean and
standard deviation
in the PSP
Mean and standard deviation are used to divide your historical size data into
categories and size ranges. This will be discussed in more detail in Lecture 4 -
Estimating with PROBE II.
Calculating mean
and standard
deviation
The formula for calculating the mean is
n
x
x
n
i
i
avg

 1
The formula for standard deviation, , is
 
1
1
2




n
xx
n
i
avgi

where
•  is the symbol for summation
• i is an index to the n numbers
• x is the data in the set
• n is the number of items in the set
Program 1 June 2012 6  2012 by Carnegie Mellon University
A mean and standard deviation example
A mean and
standard deviation
example
In this example, we will calculate mean and standard deviation of the data in
Table 3.
x
186
699
132
272
291
331
199
1890
788
1601
Table 3
1. In this example, there are 10 items in the data set. Therefore, we set n = 10.
2. We can now solve the summation items in the mean formula.
n
x
x
n
i
i
avg

 1
n x
1 186
2 699
3 132
4 272
5 291
6 331
7 199
8 1890
9 788
10 1601
Total
6389
10
1
i
ix
3. We can then substitute the intermediate value into the formula.
10
6389
avgx
9.638avgx
Continued on next page
Program 1 June 2012 7  2012 by Carnegie Mellon University
A mean and standard deviation example, Continued
A mean and
standard deviation
example, cont.
4. We can now substitute avgx to calculate the intermediate values for the
standard deviation formula.
 
1
1
2




n
xx
n
i
avgi

n x  2
avgi xx 
1 186 205,118.41
2 699 3,612.01
3 132 256,947.61
4 272 134,615.61
5 291 121,034.41
6 331 94,802.41
7 199 193,512.01
8 1890 1,565,251.21
9 788 22,230.81
10 1601 925,636.41
Total
6389
10
1
i
ix   90.760,522,3
210
1
i
avgi xx
5. We can then substitute the intermediate value into the formula.
9
00.760,522,3

878.417,391
633981.625
Program 1 June 2012 8  2012 by Carnegie Mellon University
Assignment instructions
Assignment
instructions
Before starting Program 1, review the top-level PSP0 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.
PSP0 Process Script
Purpose To guide the development of module-level programs
Entry Criteria - Problem description
- PSP0 Project Plan Summary form
- Time and Defect Recording logs
- Defect Type standard
- Stopwatch (optional)
Step Activities Description
1 Planning - Produce or obtain a requirements statement.
- 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 Time and Defect Recording logs
Continued on next page
Program 1 June 2012 9  2012 by Carnegie Mellon University
Assignment instructions, Continued
Planning phase Plan Program 1 following the PSP0 planning phase script.
PSP0 Planning Script
Purpose To guide the PSP planning process
Entry Criteria - Problem description
- Project Plan Summary form
- Time Recording log
Step Activities Description
1 Program
Requirements
- Produce or obtain a requirements statement for the program.
- Ensure that the requirements statement is clear and unambiguous.
- Resolve any questions.
2 Resource
Estimate
- Make your best estimate of the time required to develop this program.
- Enter the plan time data in the Project Plan Summary form.
Exit Criteria - Documented requirements statement
- Completed Project Plan Summary form with estimated development time
data
- Completed Time Recording log
Verify that you have met all of the exit criteria for the planning phase, and then
have an instructor review your plan. After your plan has been reviewed,
proceed to the development phase.
Continued on next page
Program 1 June 2012 10  2012 by Carnegie Mellon University
Assignment instructions, Continued
Development
phase
Develop the program following the PSP0 development phase script.
PSP0 Development Script
Purpose To guide the development of small programs
Entry Criteria - Requirements statement
- Project Plan Summary form with estimated program development time
- Time and Defect Recording logs
- Defect Type 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.
- 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 error-free.
- 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.
Exit Criteria - A thoroughly tested program
- Completed Time and Defect Recording logs
Verify that you have met all of the exit criteria for the development phase, and then
proceed to the postmortem phase.
Continued on next page
Program 1 June 2012 11  2012 by Carnegie Mellon University
Assignment instructions, Continued
Postmortem
phase
Conduct the postmortem following the PSP0 postmortem script.
PSP0 Postmortem Script
Purpose To guide the PSP postmortem process
Entry Criteria - Problem description and requirements statement
- Project Plan Summary form with development time data
- Completed Time and Defect Recording logs
- A tested and running program
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 recollection, record any omitted defects.
2 Defect Data
Consistency
- Check that the data on every defect in the Defect Recording log are
accurate and complete.
- Verify that the numbers of defects injected and removed per phase are
reasonable and correct.
- Using your best recollection, correct any missing or incorrect defect data.
3 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
- Completed Project Plan Summary form
- Completed Time and Defect Recording logs
Verify that you have met all of the exit criteria for the PSP0 postmortem phase, and then
review your assignment.
Program 1 June 2012 12  2012 by Carnegie Mellon University
Guidelines and evaluation criteria for Program 1
Reviewing your
assignment
Use the attached grading checklist to check your assignment. Ensure that your
assignment is correct before you submit it.
Your process data must be
 complete
 accurate
 precise
 self-consistent
Submitting your
assignment
When you’ve completed your review, package the following data files into a zip
file and upload the zip file to the program 1 assignment page on the SEI Learning
Portal.
 Process data (mdb export file from SEI Student Workbook or zip data
backup file from Process Dashboard).
 Source program listing.
 Test results.
Suggestions Remember, you should complete this assignment today.
Keep your programs simple. You will learn as much from developing small
programs as from large ones.
If you are not sure about something, ask your instructor for clarification.
Software is not a solo business, so you do not have to work alone.
 You must, however, produce your own estimates, designs, code, and
completed forms and reports.
 You may have others review your work, and you may change it as a result.
 You should note any help you receive from others in your process report.
Log the review time that you and your associates spend, and log the
defects found or any changes made.
Grading Checklist - PSP0
PSP0 Grading Checklist June 2012 13 © 2012 by Carnegie Mellon University
Student Program
Instructor
Accepted or Resubmit Comments
Accepted
Resubmit
Legend  - O.K. X - resubmit sw - SEI Student Workbook pd - Process Dashboard
Assignment Package Comments
All files are included
Process data file { .mdb (sw) or .zip (pd) }
Source program listing
Test results
Program and Test Results Comments
The program appears to be workable.
All required tests have been run.
The actual output is correct for each test.
Time Log Comments
Time data are entered for all process steps.
Process steps are sequenced appropriately.
Time data are entered against the appropriate process
step.
Interrupt time is tracked appropriately.
Time data are complete and reasonable.
Times were recorded as the work was done.
Defect Log Comments
Every defect has all required data.
Every defect, injection phase precedes removal phase.
Every defect has a fix time.
Defects injected in compile and test have fix numbers.
Defect descriptions describe what was changed.
Defect types are consistent with description.
Defect types are consistent with phase injected.
Defect types are assigned consistently.
Planning Summary Comments
Planned total time has been entered correctly.
Consistency Checks Comments
Grading Checklist - PSP0
PSP0 Grading Checklist June 2012 14 © 2012 by Carnegie Mellon University
Defects removed are consistent with compile and test
phase time and program size.
Total compile defect fix times are close to and no
greater than compile time.
Total test defect fix times are close to and no greater
than test time.
Defect dates & phases are consistent with the time log.
General Comments
Followed the defined process.
Complete, consistent, and accurate process data were
collected.
The student did his or her own work.

More Related Content

Similar to Program 1 assignment kit

STAT200 Assignment #2 - Descriptive Statistics Analysis and.docx
STAT200 Assignment #2 - Descriptive Statistics Analysis and.docxSTAT200 Assignment #2 - Descriptive Statistics Analysis and.docx
STAT200 Assignment #2 - Descriptive Statistics Analysis and.docxrafaelaj1
 
10.9 STORE-DRIVEN FORECASTS. The Home Depot is a lead.docx
10.9  STORE-DRIVEN FORECASTS. The Home Depot is a lead.docx10.9  STORE-DRIVEN FORECASTS. The Home Depot is a lead.docx
10.9 STORE-DRIVEN FORECASTS. The Home Depot is a lead.docxhyacinthshackley2629
 
Estimation guidelines and templates
Estimation guidelines and templatesEstimation guidelines and templates
Estimation guidelines and templatesHoa PN Thaycacac
 
8 project planning
8 project planning8 project planning
8 project planningrandhirlpu
 
Csc 102 lecture note(introduction to problem solving)
Csc 102 lecture note(introduction to problem solving)Csc 102 lecture note(introduction to problem solving)
Csc 102 lecture note(introduction to problem solving)Christopher Chizoba
 
New 7QC tools for the quality person during RCa
New 7QC tools for the quality person during RCaNew 7QC tools for the quality person during RCa
New 7QC tools for the quality person during RCaAravindhNagaraj1
 
REDD_5.2_Monitor_Measure.Key Performance
REDD_5.2_Monitor_Measure.Key PerformanceREDD_5.2_Monitor_Measure.Key Performance
REDD_5.2_Monitor_Measure.Key PerformanceMahmoud998660
 
Pm0015 quantitative methods in project management
Pm0015   quantitative methods in project managementPm0015   quantitative methods in project management
Pm0015 quantitative methods in project managementsmumbahelp
 
Case Study Analysis 2The Cholesterol.xls records cholesterol lev.docx
Case Study Analysis 2The Cholesterol.xls records cholesterol lev.docxCase Study Analysis 2The Cholesterol.xls records cholesterol lev.docx
Case Study Analysis 2The Cholesterol.xls records cholesterol lev.docxwendolynhalbert
 
Pm0015 – quantitative methods in project management
Pm0015 – quantitative methods in project managementPm0015 – quantitative methods in project management
Pm0015 – quantitative methods in project managementsmumbahelp
 
Pm0015 – quantitative methods in project management
Pm0015 – quantitative methods in project managementPm0015 – quantitative methods in project management
Pm0015 – quantitative methods in project managementsmumbahelp
 
NCV 3 Project Management Hands-On Support Slide Show - Module 4
NCV 3 Project Management Hands-On Support Slide Show - Module 4NCV 3 Project Management Hands-On Support Slide Show - Module 4
NCV 3 Project Management Hands-On Support Slide Show - Module 4Future Managers
 
lecture about project management: Logical Framework.ppt
lecture about project management: Logical Framework.pptlecture about project management: Logical Framework.ppt
lecture about project management: Logical Framework.pptNguyenDanhTai
 
Running head critical path method1 critical path method7critic
Running head critical path method1 critical path method7criticRunning head critical path method1 critical path method7critic
Running head critical path method1 critical path method7criticDIPESH30
 
work plan template 01.doc
work plan template 01.docwork plan template 01.doc
work plan template 01.docSajid Ali
 
Software Requirement Specification (SRS) on Result Analysis Tool
Software Requirement Specification (SRS) on Result Analysis ToolSoftware Requirement Specification (SRS) on Result Analysis Tool
Software Requirement Specification (SRS) on Result Analysis ToolMinhas Kamal
 
Software Test Estimation
Software Test EstimationSoftware Test Estimation
Software Test EstimationJatin Kochhar
 
Meteorology Lab ReportIntroductionMeteorologists draw
Meteorology Lab ReportIntroductionMeteorologists draw Meteorology Lab ReportIntroductionMeteorologists draw
Meteorology Lab ReportIntroductionMeteorologists draw AbramMartino96
 

Similar to Program 1 assignment kit (20)

STAT200 Assignment #2 - Descriptive Statistics Analysis and.docx
STAT200 Assignment #2 - Descriptive Statistics Analysis and.docxSTAT200 Assignment #2 - Descriptive Statistics Analysis and.docx
STAT200 Assignment #2 - Descriptive Statistics Analysis and.docx
 
10.9 STORE-DRIVEN FORECASTS. The Home Depot is a lead.docx
10.9  STORE-DRIVEN FORECASTS. The Home Depot is a lead.docx10.9  STORE-DRIVEN FORECASTS. The Home Depot is a lead.docx
10.9 STORE-DRIVEN FORECASTS. The Home Depot is a lead.docx
 
Estimation guidelines and templates
Estimation guidelines and templatesEstimation guidelines and templates
Estimation guidelines and templates
 
8 project planning
8 project planning8 project planning
8 project planning
 
Csc 102 lecture note(introduction to problem solving)
Csc 102 lecture note(introduction to problem solving)Csc 102 lecture note(introduction to problem solving)
Csc 102 lecture note(introduction to problem solving)
 
New 7QC tools for the quality person during RCa
New 7QC tools for the quality person during RCaNew 7QC tools for the quality person during RCa
New 7QC tools for the quality person during RCa
 
csc 510 Project
csc 510 Projectcsc 510 Project
csc 510 Project
 
REDD_5.2_Monitor_Measure.Key Performance
REDD_5.2_Monitor_Measure.Key PerformanceREDD_5.2_Monitor_Measure.Key Performance
REDD_5.2_Monitor_Measure.Key Performance
 
Pm0015 quantitative methods in project management
Pm0015   quantitative methods in project managementPm0015   quantitative methods in project management
Pm0015 quantitative methods in project management
 
Case Study Analysis 2The Cholesterol.xls records cholesterol lev.docx
Case Study Analysis 2The Cholesterol.xls records cholesterol lev.docxCase Study Analysis 2The Cholesterol.xls records cholesterol lev.docx
Case Study Analysis 2The Cholesterol.xls records cholesterol lev.docx
 
Pm0015 – quantitative methods in project management
Pm0015 – quantitative methods in project managementPm0015 – quantitative methods in project management
Pm0015 – quantitative methods in project management
 
Pm0015 – quantitative methods in project management
Pm0015 – quantitative methods in project managementPm0015 – quantitative methods in project management
Pm0015 – quantitative methods in project management
 
NCV 3 Project Management Hands-On Support Slide Show - Module 4
NCV 3 Project Management Hands-On Support Slide Show - Module 4NCV 3 Project Management Hands-On Support Slide Show - Module 4
NCV 3 Project Management Hands-On Support Slide Show - Module 4
 
lecture about project management: Logical Framework.ppt
lecture about project management: Logical Framework.pptlecture about project management: Logical Framework.ppt
lecture about project management: Logical Framework.ppt
 
Running head critical path method1 critical path method7critic
Running head critical path method1 critical path method7criticRunning head critical path method1 critical path method7critic
Running head critical path method1 critical path method7critic
 
work plan template 01.doc
work plan template 01.docwork plan template 01.doc
work plan template 01.doc
 
Software Requirement Specification (SRS) on Result Analysis Tool
Software Requirement Specification (SRS) on Result Analysis ToolSoftware Requirement Specification (SRS) on Result Analysis Tool
Software Requirement Specification (SRS) on Result Analysis Tool
 
Table of contents
Table of contentsTable of contents
Table of contents
 
Software Test Estimation
Software Test EstimationSoftware Test Estimation
Software Test Estimation
 
Meteorology Lab ReportIntroductionMeteorologists draw
Meteorology Lab ReportIntroductionMeteorologists draw Meteorology Lab ReportIntroductionMeteorologists draw
Meteorology Lab ReportIntroductionMeteorologists draw
 

Recently uploaded

result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college projectTonystark477637
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Christo Ananth
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 

Recently uploaded (20)

result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 

Program 1 assignment kit

  • 1. Program 1 June 2012 1  2012 by Carnegie Mellon University Assignment Kit for Program 1 ________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________ PSP Fundamentals The Software Engineering Institute (SEI) is a federally funded research and development center sponsored by the U.S. Department of Defense and operated by Carnegie Mellon University. This material is approved for public release. Distribution limited by the Software Engineering Institute to attendees.
  • 2. Program 1 June 2012 2  2012 by Carnegie Mellon University PSP Fundamentals Assignment Kit for Program 1 Overview Topics This assignment kit covers the following topics. Section See Page Prerequisites 2 Program 1 requirements 3 Linked lists overview 4 Mean and standard deviation overview 5 Using mean and standard deviation in the PSP 5 Calculating mean and standard deviation 5 A mean and standard deviation example 6 Assignment instructions 8 Guidelines and evaluation criteria 12 PSP0 Grading Checklist 13 Prerequisites Reading • Chapters 1 and 2
  • 3. Program 1 June 2012 3  2012 by Carnegie Mellon University Program 1 requirements Program 1 requirements Using PSP0, write a program to calculate the mean and standard deviation of a set of n real numbers. Your program can read the n real numbers from a file. If necessary, you can read the n real numbers from the keyboard, or some other source, but this is not recommended. Use a linked list to store the n numbers for the calculations. If necessary, a variable or static array(s), database, or other data structure(s) may be used to hold the data. Thoroughly test the program. At least two tests should use the data in the columns of Table 1. Expected results are provided in Table 2. Column 1 Column 2 Estimated Proxy Size Development Hours 160 15.0 591 69.9 114 6.5 229 22.4 230 28.4 270 65.9 128 19.4 1657 198.7 624 38.8 1503 138.2 Table 1 Test Expected Value Actual Value Mean Std. Dev Mean Std. Dev Table 1: Column 1 550.6 572.03 Table 1: Column 2 60.32 62.26 Table 2
  • 4. Program 1 June 2012 4  2012 by Carnegie Mellon University Linked lists Overview Linked lists are a common abstract data type used to maintain collections of data. Linked lists are implemented with pointers. A linked list typically has two components. • list head • list node(s) HEAD NODE 1 NODE 2 NODE n... NODE n-1 Pointers to next node Pointer to first node Pointer to last node Data Data Data Data null Some of the options for linked list structure are • the list head can point to the first node, last node, or both • a list node can point to the next node, prior node, or both Null pointers are often used to indicate an empty list or the end of the list. Typical operations on a linked list include • add node • remove node • next node • prior node
  • 5. Program 1 June 2012 5  2012 by Carnegie Mellon University Mean and standard deviation Overview The mean is the arithmetic average of a set of data. The mean is typically used to locate an unbiased center (expectation value) for a data set. Other averages include the middle value (median), and the most common value (mode). With skewed distributions, the mean is especially useful because the more intuitive median and mode can be misleading. In this exercise, average will be computed as the mean. The mean is the average of a set of data. The average is the most common measure of location for a set of numbers. The average locates the center of the data. Standard deviation is a measure of the spread or dispersion of a set of data. The more widely the values are spread out, the larger the standard deviation. For example, say we have two separate lists of exam results from a class of 30 students; one ranges from 31% to 98%, the other from 82% to 93%. The standard deviation would be larger for the results of the first exam. Using mean and standard deviation in the PSP Mean and standard deviation are used to divide your historical size data into categories and size ranges. This will be discussed in more detail in Lecture 4 - Estimating with PROBE II. Calculating mean and standard deviation The formula for calculating the mean is n x x n i i avg   1 The formula for standard deviation, , is   1 1 2     n xx n i avgi  where •  is the symbol for summation • i is an index to the n numbers • x is the data in the set • n is the number of items in the set
  • 6. Program 1 June 2012 6  2012 by Carnegie Mellon University A mean and standard deviation example A mean and standard deviation example In this example, we will calculate mean and standard deviation of the data in Table 3. x 186 699 132 272 291 331 199 1890 788 1601 Table 3 1. In this example, there are 10 items in the data set. Therefore, we set n = 10. 2. We can now solve the summation items in the mean formula. n x x n i i avg   1 n x 1 186 2 699 3 132 4 272 5 291 6 331 7 199 8 1890 9 788 10 1601 Total 6389 10 1 i ix 3. We can then substitute the intermediate value into the formula. 10 6389 avgx 9.638avgx Continued on next page
  • 7. Program 1 June 2012 7  2012 by Carnegie Mellon University A mean and standard deviation example, Continued A mean and standard deviation example, cont. 4. We can now substitute avgx to calculate the intermediate values for the standard deviation formula.   1 1 2     n xx n i avgi  n x  2 avgi xx  1 186 205,118.41 2 699 3,612.01 3 132 256,947.61 4 272 134,615.61 5 291 121,034.41 6 331 94,802.41 7 199 193,512.01 8 1890 1,565,251.21 9 788 22,230.81 10 1601 925,636.41 Total 6389 10 1 i ix   90.760,522,3 210 1 i avgi xx 5. We can then substitute the intermediate value into the formula. 9 00.760,522,3  878.417,391 633981.625
  • 8. Program 1 June 2012 8  2012 by Carnegie Mellon University Assignment instructions Assignment instructions Before starting Program 1, review the top-level PSP0 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. PSP0 Process Script Purpose To guide the development of module-level programs Entry Criteria - Problem description - PSP0 Project Plan Summary form - Time and Defect Recording logs - Defect Type standard - Stopwatch (optional) Step Activities Description 1 Planning - Produce or obtain a requirements statement. - 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 Time and Defect Recording logs Continued on next page
  • 9. Program 1 June 2012 9  2012 by Carnegie Mellon University Assignment instructions, Continued Planning phase Plan Program 1 following the PSP0 planning phase script. PSP0 Planning Script Purpose To guide the PSP planning process Entry Criteria - Problem description - Project Plan Summary form - Time Recording log Step Activities Description 1 Program Requirements - Produce or obtain a requirements statement for the program. - Ensure that the requirements statement is clear and unambiguous. - Resolve any questions. 2 Resource Estimate - Make your best estimate of the time required to develop this program. - Enter the plan time data in the Project Plan Summary form. Exit Criteria - Documented requirements statement - Completed Project Plan Summary form with estimated development time data - Completed Time Recording log Verify that you have met all of the exit criteria for the planning phase, and then have an instructor review your plan. After your plan has been reviewed, proceed to the development phase. Continued on next page
  • 10. Program 1 June 2012 10  2012 by Carnegie Mellon University Assignment instructions, Continued Development phase Develop the program following the PSP0 development phase script. PSP0 Development Script Purpose To guide the development of small programs Entry Criteria - Requirements statement - Project Plan Summary form with estimated program development time - Time and Defect Recording logs - Defect Type 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. - 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 error-free. - 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. Exit Criteria - A thoroughly tested program - Completed Time and Defect Recording logs Verify that you have met all of the exit criteria for the development phase, and then proceed to the postmortem phase. Continued on next page
  • 11. Program 1 June 2012 11  2012 by Carnegie Mellon University Assignment instructions, Continued Postmortem phase Conduct the postmortem following the PSP0 postmortem script. PSP0 Postmortem Script Purpose To guide the PSP postmortem process Entry Criteria - Problem description and requirements statement - Project Plan Summary form with development time data - Completed Time and Defect Recording logs - A tested and running program 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 recollection, record any omitted defects. 2 Defect Data Consistency - Check that the data on every defect in the Defect Recording log are accurate and complete. - Verify that the numbers of defects injected and removed per phase are reasonable and correct. - Using your best recollection, correct any missing or incorrect defect data. 3 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 - Completed Project Plan Summary form - Completed Time and Defect Recording logs Verify that you have met all of the exit criteria for the PSP0 postmortem phase, and then review your assignment.
  • 12. Program 1 June 2012 12  2012 by Carnegie Mellon University Guidelines and evaluation criteria for Program 1 Reviewing your assignment Use the attached grading checklist to check your assignment. Ensure that your assignment is correct before you submit it. Your process data must be  complete  accurate  precise  self-consistent Submitting your assignment When you’ve completed your review, package the following data files into a zip file and upload the zip file to the program 1 assignment page on the SEI Learning Portal.  Process data (mdb export file from SEI Student Workbook or zip data backup file from Process Dashboard).  Source program listing.  Test results. Suggestions Remember, you should complete this assignment today. Keep your programs simple. You will learn as much from developing small programs as from large ones. If you are not sure about something, ask your instructor for clarification. Software is not a solo business, so you do not have to work alone.  You must, however, produce your own estimates, designs, code, and completed forms and reports.  You may have others review your work, and you may change it as a result.  You should note any help you receive from others in your process report. Log the review time that you and your associates spend, and log the defects found or any changes made.
  • 13. Grading Checklist - PSP0 PSP0 Grading Checklist June 2012 13 © 2012 by Carnegie Mellon University Student Program Instructor Accepted or Resubmit Comments Accepted Resubmit Legend  - O.K. X - resubmit sw - SEI Student Workbook pd - Process Dashboard Assignment Package Comments All files are included Process data file { .mdb (sw) or .zip (pd) } Source program listing Test results Program and Test Results Comments The program appears to be workable. All required tests have been run. The actual output is correct for each test. Time Log Comments Time data are entered for all process steps. Process steps are sequenced appropriately. Time data are entered against the appropriate process step. Interrupt time is tracked appropriately. Time data are complete and reasonable. Times were recorded as the work was done. Defect Log Comments Every defect has all required data. Every defect, injection phase precedes removal phase. Every defect has a fix time. Defects injected in compile and test have fix numbers. Defect descriptions describe what was changed. Defect types are consistent with description. Defect types are consistent with phase injected. Defect types are assigned consistently. Planning Summary Comments Planned total time has been entered correctly. Consistency Checks Comments
  • 14. Grading Checklist - PSP0 PSP0 Grading Checklist June 2012 14 © 2012 by Carnegie Mellon University Defects removed are consistent with compile and test phase time and program size. Total compile defect fix times are close to and no greater than compile time. Total test defect fix times are close to and no greater than test time. Defect dates & phases are consistent with the time log. General Comments Followed the defined process. Complete, consistent, and accurate process data were collected. The student did his or her own work.