Calculate the values of software, Software Engineering

Assignment Help:

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


Related Discussions:- Calculate the values of software

Define the method of direct changeover, Define the method of Direct changeo...

Define the method of Direct changeover With this technique, old system is stopped and new system is used Straight away;  - This method can be disastrous if new system fails

Explain about special value testing, Q. Explain about Special Value Testing...

Q. Explain about Special Value Testing? Special Value Testing is the form of functional testing. Special value testing take places when a tester uses his or her domain knowle

Pros and cons of adding audio directly to the timeline, Question: Audio...

Question: Audio and Video Integration in Flash MX 2004 Professional. What sound formats does Flash MX 2004 support? (incl. if you have Quicktime or later installed on your comp

Transaction mapping, how transaction mapping is done.??clear me with a brie...

how transaction mapping is done.??clear me with a brief example

Outsourcing software, discuss how your organization can take advantage of o...

discuss how your organization can take advantage of outsourcing its IT systems/functions

Define graph matrix and connection matrix, Q. Define graph matrix and conne...

Q. Define graph matrix and connection matrix. Ans: Graph matrix: A graph matrix is a square matrix whose size that is a number of rows and columns is equal to the number of n

Write the definition of design process, Write the definition of design proc...

Write the definition of design process. Design process is a sequence of steps carried by which the requirements are transformed into a system or software model.

Evaluate the agresti-card-glass metrics, Question 1: We have a small sy...

Question 1: We have a small system with a call graph as given below. Consider that each vertex is a module. All modules are new (i.e., n = n0) Also consider that the number of

Ethical issue moduel, i want to select topic to my ethical issues assignmen...

i want to select topic to my ethical issues assignment can u propose reasonable topic?

State the advantages of prototyping, State the Advantages of Prototyping ...

State the Advantages of Prototyping Advantages of prototyping outperform problems of prototyping. Hence overall, it's a beneficial approach to develop prototype. End user can'

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd