Personalsoftwareprocess

Páginas: 3 (585 palabras) Publicado: 18 de febrero de 2013
PSP Familiarization Exercise #3:
Program Size

Purpose: This exercise shows you how to count lines of code.

Contents: The exercise package contains a line-of-code counting standard and thesource code for a small Pascal program.

Directions: First read the line-of-code counting standard and mark every line that should be counted on the listing. Then count and number the lines youhave marked. When you are done, the instructor will hand out the exercise answer and check to see if everyone got the correct answer. Ask about any differences and make sure you know how to countlines of code.


Line-of-Code Counting Standard - Pascal
.
|Purpose |To guide engineers in determining the size of Pascal source programs. ||General |Line-of-code (LOC) counting standards are arbitrary and language dependent. |
| |For consistent size measurement, all softwareteam members should use a single LOC counting standard. |
|Item |Description ||Parenthesis |No statement or punctuation marks within '( … )' are counted. |
|Brackets |No statement or punctuation marks within '{ … }'are counted. |
|Semicolon |Every occurrence of a ';' is counted once. |
|Period.|Every occurrence of a '.' that follows a terminating END statement is counted once. |
|Key Words |Every occurrence of the following selected key wordsis counted once: |
| |BEGIN, CASE, DO, ELSE, END, IF, RECORD, REPEAT, THEN |
|Special...
Leer documento completo

Regístrate para leer el documento completo.

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS