Use basis path testing to develop the test cases for the following code. Use the
ID: 3599325 • Letter: U
Question
Use basis path testing to develop the test cases for the following code. Use the line (statement) numbers shown in your CFG. Use the following template for the test case table. Assume altfeet ranges from 0 to 50,000 feet inclusive.
here are instructions for the solution...
1 public void gndCollWarning (boolean gearUp, double altfeet) 2 gndCollCaut-gnd CollWarn-gndCollAlert-emerGrDown-false; if (gearUp) 4 if (altfeet200) 6 gnd CollCaut-true; else 8 if (altfeet>100) gndCollWarn-true; 10 else gndCollAlert-true; if (altfeetExplanation / Answer
clc; clear all;
pwf= [3865.6, 2991.1, 1770.8];
qo=[988.2, 2167.2, 3180.4];
syms p c n
n=linspace(0.5,1,10)
for (i=0.5:1)
eq1=qo==(c((p^2)-(pwf.^2)).^n(i));
[p,c]=vpasolve(eq1,[p,c],[0,inf]);
end
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.