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

Static testing tools and dynamic testing tools, Static testing tools: 1...

Static testing tools: 1. Static analysers   2. Code inspectors  3. Standard Dynamic testing tools   1. Coverage analyzers (execution verifiers)    2. Output co

Explain the seven model primitives in 3d lingo, (a) Copying a graphic imag...

(a) Copying a graphic image from the Web can be as easy as pointing to it and clicking the right mouse button or performing a screen capture. The question is, under what circumsta

Final Year Project Help, I am currently working on a project and am far fro...

I am currently working on a project and am far from passing, I need help ASAP! The project task is to create a Decision support system for An Airline. It must predict and make de

What is clear box testing, Clear box testing is the similar as white box te...

Clear box testing is the similar as white box testing. It is a testing approach that consider the application's program structure, and acquires test cases from the application's pr

Develop a test case for any under development application, An application w...

An application which is under development. How would you develop a test case for it? When application is under development, Business Requirement Document is used as primary doc

What is fault, A manifestation of an error in software. A fault, if encount...

A manifestation of an error in software. A fault, if encountered, might cause a failure.

What do you understand by black box testing, Q. What do you understand by b...

Q. What do you understand by black box testing? Black Box Testing:-Black Box Testing is as well called behavioural testing focuses on the functional requirements of the softwar

What are the advantages and disadvantages of size measure, What are the adv...

What are the advantages and disadvantages of size measure? Advantages: Artefact of software development which is simply counted. Many existing methods use LOC as a key input. A

Structured analysis and structured design, Differentiate between structured...

Differentiate between structured analysis and structured design.  The aim of structured analysis is to transform the textual explanation of a problem into a graphic model. Duri

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