Calculate the values of software, Software Engineering

Q. For the program given below, calculate the values of software science measures like ?, N, V, E and λ.

int. sort (int x[], int n)


int i, j, save, im1;

/*This function sorts array x in ascending order*/

If (n<2) return 1;

for (i =2; i<=n;i++)



for (j=1;j<=im;j++)

if (x[i]


Save = x[i];

x [i]=x[j];

x [j]=save;



return 0;



This list of operators as well as operands is given in Table.

590_Calculate the values of software.png

Here N1=53 and N2=38. The program length N =N1+N2=91

Vocabulary of the program ? =  ? 1+ ? 2=14+10=24

Volume V=Nxlog2 ?

=91x log2 24=417 bits.

The estimated program length N of the program

=14 log214+10 log210



Conceptually unique input as well as output parameters are represented by ? *2.

? *2=3 {x: array holding the integer to be sorted. This is used both as input and output}.

{N: the size of the array to be sorted}.

The potential volume V*=5 log2 5=11.6

Since L=V*/V




Estimated program level

794_Calculate the values of software1.png

We may use another formula

Vˆ* = VxLˆ

 = 417x0.038 = 15.67

The discrepancy between V* and Vˆ * doesn't inspire confidence in the application of this portion of software science theory to more complicated programs.

E=V/ Lˆ = Dˆ x V

= 417/0.038=10973.68

Consequently 10974 elementary mental discriminations are required to construct the program.

1043_Calculate the values of software2.png

Posted Date: 7/26/2013 4:09:23 AM | Location : United States

Related Discussions:- Calculate the values of software, Assignment Help, Ask Question on Calculate the values of software, Get Answer, Expert's Help, Calculate the values of software Discussions

Write discussion on Calculate the values of software
Your posts are moderated
Related Questions
Hardware Requirements: INMAGIC Plus software package requires the following computer configuration:  i)  Micro : IBM PC or compatible with a minimum 640 K RAM.  ii)  Ope

Determine the Sanity testing - Sanity testing is used to ensure that conflicting or multiple functions or variables don't exist in system. - It verifies that components of

Why is SRS also known as the blackbox specification of system ? Ans: SRS document is a contract among the development team and the customer.  Once the SRS document is accepted

Application Design: Micro CDS/ISIS is a text oriented software package. It is a good , ho ice if one wishes to store textual data, retrieve the data by certain criteria, and d

how does software myth affects software process

Q. Explain Lines of code - Software Metrics? Lines of code (LOC) is a software metric used to measure the size of a software program by counting the number of lines in the te

Explain about rapid prototyping techniques. Executable specification languages. Used to living the system specification. It is expressed in a formal, mathematical la

Name the commonly used architectural styles. i. Data centered architecture. ii. Data flow architecture. iii. Call and return architecture.

Define the term - Inspection - An inspection is more formal than walk through. - It includes 3-8 people - a moderator, reader as well as a recorder to take notes. - Subj

Define the Behavioural Model It defines operational behaviour of the system.  In this model, numerous operations of the system are represented in pictorial form. Tools used to