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++)

{

im1=i-1;

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

if (x[i]

{

Save = x[i];

x [i]=x[j];

x [j]=save;

}

}

return 0;

}

Ans:

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

=14*3.81+10*3.32

=53.34+33.2=86.45

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

=11.6/417=0.027

D=I/L

=1/0.027=37.03

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
Problem: (a) What do you understand by user-centred design and why is it important? (b) Explain how Prototyping and the Participatory Design approach are useful to the d


Explain the role and functions of a Systems Analyst in the overall project development.

Q. Explain about non-functional requirement for a software ? Ans) Nonfunctional requirements are the basic characteristics of the system which will not be expressed as function

what is software process model and waterfall model?


Q. Explain about Function count? Function count:- It measures the functionality from the user point of view that is on the basis of what the user requests and receives in ret

Use the Newton divided-di_erence method to construct interpolating polynomials of degree one, two, and three for the following data. Approximate f(0.18) using each of the polynomia

Throw-away prototyping Objective: The principal objective of this model is to validate or to derive the system requirements. It is developed to reduce requir

1. An orderly development of testing in which software elements, hardware elements, or both are joined and tested, to check out their interactions, unless the entire system has bee