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

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 different phases of spiral model, Q. Explain Different Phases of sp...

Q. Explain Different Phases of spiral model? 1) Planning: In this phase the objectives alternatives as well as constraints of the project are determined or documented. The ob

State in detail about the software design, State in detail about the Softwa...

State in detail about the Software design Software design is the core of software engineering process and first of three important technical activities that are design, coding,

What problems arise if two modules have high coupling, Q. What problems ari...

Q. What problems arise if two modules have high coupling? Ans: Coupling signifies the interconnection of different modules with each other or we can say it tells about the in

Differentiate between failures and faults, Q. Differentiate between failu...

Q. Differentiate between failures and faults? Ans. Failure: -Failure is the disappearance of external results of program operation from requirements. Consequently failure is

Explain the incremental model, Explain the Incremental Model Iterative ...

Explain the Incremental Model Iterative and Incremental Models follow more or less the similar approach. Incremental Model is an intuitive approach to the waterfall model. Mult

What is technical review, A technical review is the review that refers to c...

A technical review is the review that refers to content of the technical material being reviewed.

What is pure and impure interpreter, what is interpreter explain pure and i...

what is interpreter explain pure and impure interpretion

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