1
8.Console.WriteLine("The equation has one solution: x= {0}", (-c/b));
Zoom
9.}
10.}
11.
12.float deltabb4ac;
13.float x1;
14.float x2;
15.
16.if (delta > 0) {
17.x1 (float) ((-b + Math. Sqrt(delta)) / (2 * a));
18.x2 (float)((-b Math. Sqrt(delta)) / (2 * a));
19.Console.WriteLine("The equation has two solutions: x1 (0) va x2 {1}", x1, x2);
20.}
21.else if (delta == 0) {
22.x1 (-b/(2a));
23.Console.WriteLine("The equation has dual solutions: x1 x2 {0}", x1);
24.}
25.else {
26.Console.WriteLine("The equation has no solution!");
27.}
28. }
Question 3 (4 points): You are assigned to do the functional (black-box) test for function Courtesy Hold. Writing test cases for this function with the content described below. (Use question 3 template)
+ 107%
Close