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

What is validation and verification testing, Explain Validation and verific...

Explain Validation and verification testing? Ans) Used as an entity to describe a procedure of review, analysis, and testing all over the software life cycle to discover errors,

What is affinity diagram, A group process that takes large quantity of lang...

A group process that takes large quantity of language data, like as a list developed by brainstorming, and separates it into categories.

Describe design walk throughs, Describe design walk throughs A design wa...

Describe design walk throughs A design walkthrough is a quality practice that allows designers to obtain an early validation of design decisions related to the development and t

Basic cocomo model and the detailed cocomo model, Q. Compare the basic COCO...

Q. Compare the basic COCOMO model with the detailed COCOMO model. Ans. COCOMO contains of a hierarchy of three increasingly detailed and accurate forms. Basic COCOMO i

Fan out Fan In, Explain fan out and fan in with example.

Explain fan out and fan in with example.

What are the elements of computer based systems, What are the elements of C...

What are the elements of Computer based Systems? Software: Data structures, Computer programs, & related document Hardware: Electronic devices, inter connectivity devices, E

What is the use of a data flow diagram, What is the use of a data flow diag...

What is the use of a data flow diagram? A data flow diagram is used to represent the functional view of an application domain. It represents all the significant business proces

What is peer reviews, What is Peer Reviews? Ans) A methodical examinatio...

What is Peer Reviews? Ans) A methodical examination of software work products by the producer's peers to recognize defects and areas where changes are required.

Explain stress testing, Testing conducted to classify a system or component...

Testing conducted to classify a system or component at or beyond the limits of its described requirements.

What is configuration management planning, What is Configuration management...

What is Configuration management planning? All products of the software process may have to be managed: Specifications; Designs; Programs; Test data; User

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