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

Iterative and evolutionary development, what is iterative and evolutionary ...

what is iterative and evolutionary developments? how iteration help in refining requirements

Construct an e-r diagram, Construct an E-R Diagram for the application desc...

Construct an E-R Diagram for the application described on the next page. Include any additional assumptions you made about the application requirements. The assumptions may not dir

Jenny Smith, RE : Website Google Ranking Hi, We can fairly quickly promot...

RE : Website Google Ranking Hi, We can fairly quickly promote your website to the top of the search rankings with no long term contracts! We can place your website on top of the

What is coupling, What is Coupling? Coupling is the measure of interconn...

What is Coupling? Coupling is the measure of interconnection among modules in a program structure. It depends on the interface complexity among modules.

What is requirement elicitation methods, Q. What is requirement elicitation...

Q. What is requirement elicitation methods? Subsequent to receiving the problem statement from the customer the first step is to arrange a meeting with the customer. During the

Explain change control, Problem 1 Explain change control? Write down th...

Problem 1 Explain change control? Write down the steps followed for change control Problem 2 Explain the concept of Baselines with reference to software configuration m

Software Metircs, I have a comprehensive question for Software Metrics ...i...

I have a comprehensive question for Software Metrics ...it is 16 question

Explain in detail about structural modeling, Explain in detail about Struct...

Explain in detail about Structural Modeling. Structural model having a detail refinement of ERD, data flow model and control flow model. Creating an ERD. Example: Saf

What are the elements of design model, What are the elements of design mode...

What are the elements of design model? i. Data design ii. Architectural design iii. Interface design iv. Component-level design

Software project planning entails what activities, Software project plannin...

Software project planning entails what activities? Software project planning entails the many activities: -  Estimation:  o Effort, , resource, cost and project duratio

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