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

Explain intermediate and detailed cocomo model, Q. Explain Intermediate and...

Q. Explain Intermediate and Detailed COCOMO model? Intermediate COCOMO calculates software development effort as function of program size and a set of cost drivers that include

What is ripple effect, Q. What is ripple effect? How does it affect the sta...

Q. What is ripple effect? How does it affect the stability of a program? Ans. The ripple effect is a term used to explain a situation where like the ever expanding ripples

Discuss in detail about cocomo model, Discuss in detail about COCOMO model....

Discuss in detail about COCOMO model. Constructive Cost Model. Software cost estimation gives the opportunity to estimate of how much months a man take to develop a softw

Illustrate functions that dynamic testing tools supports, Q. Illustrate Fun...

Q. Illustrate Functions that dynamic testing tools supports? Functions that dynamic testing tools supports: 1: input setting it is selecting of the test data that the test

Illustrate function-oriented metrics, Q. Illustrate Function-oriented metri...

Q. Illustrate Function-oriented metrics? Function-oriented metrics: Function-oriented software metrics utilize a measure of the functionality delivered by an application as a

Data structure, what do you understand by recursion.explain the simulating ...

what do you understand by recursion.explain the simulating recursion in brief.program of fabinacon series by recursion

Define maintenance, Define maintenance. Maintenance is explained as the...

Define maintenance. Maintenance is explained as the process in which changes are executed by either modifying the existing system's architecture or by adding latest components

What is non-intrusive testing, What is Non-intrusive Testing? Testing th...

What is Non-intrusive Testing? Testing that is transparent to the software under test; i.e., testing that does not alter the timing or processing characteristics of the software

Explain bottom up design, Bottom up design: This design leads to a style o...

Bottom up design: This design leads to a style of design where we decide how to join these modules to give larger ones; to combine those to give even larger ones, and so on, till

Software management, i have coursework on software management and dont know...

i have coursework on software management and dont know how to go about it. I want to find out if you will be able to help me on that. The task is to investgate(research informed pa

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