Nature of roots of a quadratic equation, Software Engineering

Assignment Help:

Consider a program for the purpose of the nature of roots of a quadratic equation. Its input is the triple of positive integers say a, b, c as well as values in the interval [0,100]. The program output possibly one of the following:

[Not a quadratic equation; Real roots; Imaginary roots; Equal roots]. Design the boundary value test cases as well as robust test cases for the program.

Ans Quadratic equation will be of type:

ax2 + bx + c = 0

Roots are real if ( 4 ) 0 2 b - ac >

Roots are imaginary if ( 4 ) 0 2 b - ac <

Roots are equal if ( 4 ) 0 2 b - ac =

Equation isn't quadratic if a=0

The boundary value test cases are

1200_Nature of roots of a quadratic equation.png

As we know robust test cases are 6n+1 therefore in 3 variable input cases total numbers of test cases are 19 as given below:

1013_Nature of roots of a quadratic equation1.png


Related Discussions:- Nature of roots of a quadratic equation

What are the advantages of evolutionary prototyping, What are the advantage...

What are the advantages of evolutionary prototyping? i. Fast delivery of the working system. ii. User is included while developing the system. iii. More useful system can

Explain equivalence partitioning, What is equivalence partitioning? Equ...

What is equivalence partitioning? Equivalence partitioning is a black box procedure that divides the input domain into classes of data. From this data test cases can be foun

Cohesion, Cohesion for Each Module? Compute average daily temperatures at v...

Cohesion for Each Module? Compute average daily temperatures at various sites Initialize sums and open files Create new temperature record Store temperature record Close files and

Explain the meaning of the three-tier architecture, QUESTION (a) Explai...

QUESTION (a) Explain the meaning of the three-tier architecture (b) An Internet banking system can be said to be based on a three-tier architecture. Illustrate this with a d

What are assumptions of the execution-time component model, Q. What are the...

Q. What are the assumptions of the execution-time component model? Compare the execution-time component for basic model and the logarithmic Poisson model. Ans. The execution-

Illustrate the relationship between time and cost, Q. Illustrate the relati...

Q. Illustrate the relationship between Time and cost? In software projects, time cannot be freely exchanged against cost. Such a trade off is limited by the nature of the softw

Define the load address for the first word of the program, Define the Load ...

Define the Load address for the first word of the program is known as Load address origin is called as a Load address for the first word of the program

What is process analysis and modelling, What is Process analysis and modell...

What is Process analysis and modelling? Process analysis The study of existing processes to understand the relationships among parts of the process and to compare them

Jk flip-flop, It should include all the theory that you need to complete th...

It should include all the theory that you need to complete the requested design, and all the simulation documents that you produce after synthesizing the circuit. Briefly, your rep

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