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 is compatibility testing, What is Compatibility testing - It's a n...

What is Compatibility testing - It's a non-functional test performed on a software system or component for checking its compatibility with the other parts in computing environm

What is a variant, What is a variant Ans) "Variants" are versions of a p...

What is a variant Ans) "Variants" are versions of a program.

What are the characteristics of srs, What are the characteristics of SRS? ...

What are the characteristics of SRS? i. Correct - The SRS should be made up to date when appropriate needs are identified. ii. Unambiguous - When the needs are correctly un

What is detailed COCOMO model, Q. What is Detailed COCOMO model ? The d...

Q. What is Detailed COCOMO model ? The detailed COCOMO model is able to estimate the staffing cost and duration of each of the subsystem, development phases and modules. It per

What is exception, What is Exception? Ans) An event that causes suspensi...

What is Exception? Ans) An event that causes suspension of normal program implementation. Types contain addressing exception, operation exception, data exception, overflow excep

Determine the cyclomatic complexity, Q. Consider the program given below ...

Q. Consider the program given below void main() { int i,j,k; readln (i,j,k); if( (i k) ) { writeln("then part"); if (j writeln ("j

What is recovery/error testing, Recovery/error testing is testing how well ...

Recovery/error testing is testing how well a system recovers from crashes, hardware failures, or other catastrophic problems.

Implementation of system functionality, Methodology and system Functionalit...

Methodology and system Functionality: High level views of the proposed system in terms of the requirements that will be supported by the proposed system in the context of busine

Advanced buttons and event detection, Question: Advanced Buttons and Ev...

Question: Advanced Buttons and Event Detection. a. With two ways to assign event handlers to buttons, which one do you preferably use and why? on(press) vs. onPress b. 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