Software Engineering

profiles3ood_55555
assig_1_mohannad_.docx

Attached Files:

·  LOCTest.c (2.449 KB)

·  SD1_Evaluation Form_v7.xlsx (54.76 KB)

·  Software_Development_Assignment_1_201701.pdf (231.5 KB)

·  Software_Development_Assignment_1B_201701.pdf (233.375 KB)

Software Development Assignment #1 (SD1) - "LOC Counter"

Assignment Date: January 17, 2017

Due Dates:

· Submission 1: January 24, 2017 – 1 week - Requirements & Estimates ONLY

· Submission 2: January 31, 2017 – 2 weeks - Complete

Assignment Submission :

· Assignment deliverables must be submitted in the appropriate “ Assignments” area on Blackboard by the BEGINNING of class on the due date.

· All executable programs must be in the form of .EXE, .JAR or .HTML files.

· “ZIP” the collection of all files into a single file using WinZip or RAR format.

· Name the ZIP file SD1_UserName.zip (or .rar)   [UserName meaning your Banner UserName - example: SD1_bsweet]

This project has multiple submissions with various due dates (given above). Append “_n” to the submitted file name, where “n” is the submission number [example: SD1_bsweet_1]

Module Name: LOCTest.c

**

** Module Description:

** LOCTest.c is intended to test the functionality of LOC Counting programs

** for C, C++ and Java.

**

***************************************************************************

**

** Author: Benjamin D. Sweet

** Revision: 1.3

** Creation Date: 23-May-2005

** Edit Date: 21-Aug-2016

**

***************************************************************************

**

** Revision History:

**

** Revision: 1.3 21-Aug-2016 B.Sweet

** * In function1() added a '/' character inside the C block comment and

** a '*' character in the body of the if() statement.

** Some incorrect logic may count these as a LOC.

**

** Revision: 1.2 02-Feb-2016 B.Sweet

** * Added some tab characters in the white-space lines, and also some "blank"

** lines with containing spaces and tabs.

**

** Revision: 1.1 05-Feb-2012 B.Sweet

** * Added Header Comment block.

** * In function2(), moved the beginning of one multi-line C Block Comment

** from an otherwise blank line to begin after text.

** * Placed "Total Program LOC: 25" AFTER the end of a C Block Comment.

** (BAD programming style!! But technically a valid test case.)

**

** Revision: 1.0 23-May-2005 B.Sweet

** * Original version.

**

**************************************************************************/

// line comment

/* Block Comment */

/*

** Multi-line block comment;

*/

#include <something>

int long prototype1(argument);

int long prototype2 ( argument ) ;

int long function1 (int arg1, char arg2)

{

// line comment in function

/* Block Comment in Function / */

if (condition)

{

*

}

Function1 LOC: 8

/*

** Multi-line block comment in function;

*/

}

void function2 ( void )

{

// line comment in function

/* Block Comment in Function */

for (init ; condition ; increment )

{

if (condition)

{

statement; // In-Line comment

} else {

statement; /* In-Line comment */

}

}

Function2 LOC: 13 /*

** In-Line multi-line block comment in function;

*/

}

/* Text after the end of Block Comment SHOULD be counted as LOC - but BAD programming style!! */ Total Program LOC: 25