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 metrics assumptions of software metrics, Explain Metrics assumption...

Explain Metrics assumptions of Software metrics Software metrics A software property can be calculated. The relationship exists among what we can measure and what we

What is a process modeling and management tool, What is a process modeling ...

What is a process modeling and management tool? Process modeling and management tools are used to show the key elements of a process so it can be better understood. Such tools

Incremental model, four circumstances where incremental model is appropriat...

four circumstances where incremental model is appropriate?

Explain about token count - software metrics, Q. Explain about token count ...

Q. Explain about token count - software metrics? Token count :- A program is considered to be series of tokens and if we count the number of tokens, some interesting results m

Explain the process specification, Define Process Specification . Proces...

Define Process Specification . Process Specification is used to clarify all flow model processes that appear at the final level of refinement. Check & Convert pressure

State the technique pilot used in software engineering, State the technique...

State the technique Pilot used in software engineering With this approach, new system is introduced into one part of the company (for example into one warehouse of a supermark

What is project scheduling, Question 1 What is project management? Explain...

Question 1 What is project management? Explain various activities involved in project management Question 2 Describe the following with respect to Estimation and Budgeting of

What is the full form of eva, What is EVA? Earned Value Analysis is a ...

What is EVA? Earned Value Analysis is a technique of performing quantitative analysis of the software project. It gives a common value scale for each task of software projec

Write down the schema to represent the current system state, Question: ...

Question: Consider the University modular degree scheme where students choose a selection of modules from a large menu. Here we have the basic types [PERSON, MODULE], the set o

Explain regression testing, Question 1 Explain Iterative Development Model...

Question 1 Explain Iterative Development Model in detail Question 2 What is statistical testing? What are the steps involved in statistical Testing Question 3 Explain wh

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