C__DOCUME~1_MAXWID~1_LOCALS~1_Temp_plugtmp-27_lecture11_metrics_style_strings

C__DOCUME~1_MAXWID~1_LOCALS~1_Temp_plugtmp-27_lecture11_metrics_style_strings

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
1 1 Announcements Lecture 11 • Read chapters – 13 (strings) – 22 (file IO) • Topics for today – Metrics – Style – Strings 2 Basics of Metrics Time Keeping – The unit of measure for effort is a person hour; defined as: "an hour of time expended by you in the course of doing the assignment". Lines of Code – SLOC (source lines of code) – Each physical line in the source code listing counts as 1 SLOC. However, lines which are only comments and blank lines are not included in this count. Code modules included from the C libraries do not count, but the include statement does. Only SLOC delivered in the final submitted .c file for grading should be counted. Errors – A defect is a flaw in your program that causes it to not work properly. the number of serious logic errors that you encountered and had to fix in completing the assignments. Serious means that it was not immediately obvious what the problem was.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 3 Lines of Code • What is a line of code? • What is a line of executable code? • What is a line of C code? • Why do I care? 4 What is a line of code? Sample program Step 1 - number the lines Step 2 - remove the blank lines Step 3 - remove the comments Step 4 - remove single character lines • Step 5 - count the number of executable lines of code
Background image of page 2
3 5 Errors • What is an error? • When does it occur? • How do I count it? 6 Assignment 2 Metrics In Total: By Section: # SLOC Person Hours # Defects Totals 12803 694.77 1161.00 Average 67.38 3.60 6.02 Min 0.00 0.50 0.00 Max 164.00 30.00 60.00 Median 65.00 3.00 4.00 Mode 60.00 2.00 2.00 15758 # SLOC Person Hours # Defects Totals 1609 98 124 Average 73.14 4.24 5.39 Min 34.00 1.50 0.00 Max 164.00 11.00 20.00 Median 70.00 3.50 4.00 Mode 70.00 3.00 4.00 15757 # SLOC Person Hours # Defects Totals 1331 107 90 Average 60.50 4.47 3.75 Min 20.00 0.67 1.00 Max 103.00 17.00 10.00 Median 60.00 3.50 3.00 Mode 60.00 2.00 3.00 15756 # SLOC Person Hours # Defects Totals 720 44 49 Average 65.45 3.95 4.45 Min 40.00 1.50 0.00 Max 100.00 8.00 10.00 Median 65.00 4.00 4.00 Mode 50.00 4.00 4.00 15755 # SLOC Person Hours # Defects Totals 1481 67 98 Average 70.52 3.18 4.67 Min 19.00 0.85 0.00 Max 150.00 10.00 10.00 Median 65.00 2.00 5.00 Mode 60.00 2.00 5.00 15750 # SLOC Person Hours # Defects Totals 1567 65 107 Average 74.62 3.07 5.10 Min 25.00 1.00 0.00 Max 123.00 7.00 15.00 Median 70.00 3.00 5.00 Mode 70.00 3.00 2.00 15745 # SLOC Person Hours # Defects Totals 1574 102 160 Average 65.58 4.25 6.67 Min 0.00 0.50 1.00 Max 120.00 30.00 20.00 Median 64.50 2.50 5.00 Mode 60.00 2.00 2.00 15740 # SLOC Person Hours # Defects Totals 1485 68 166 Average 61.88 2.83 6.92 Min 25.00 0.80 0.00 Max 107.00 5.00 30.00 Median 61.50 3.00 5.50 Mode 70.00 2.00 6.00 15735 # SLOC Person Hours # Defects Totals 1443 72 166 Average 65.59 3.26 7.55 Min 18.00 1.00 2.00 Max 125.00 9.00 25.00 Median 62.00 3.00 6.50 Mode 60.00
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 17

C__DOCUME~1_MAXWID~1_LOCALS~1_Temp_plugtmp-27_lecture11_metrics_style_strings

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online