Use basis path testing to develop the test cases for the following code. Use the
ID: 3599331 • 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.
here are instructions for the solution...
1 public boolean isPrimeShipper (int numltems, int yearsCust, double total, double shippingCost)f 2 3 boolean a-false; 4 if (total>50_000.00) 5 if (shippingCost8) if (yearsCust 10) a-true, 8 9 return a; 10 ) Test case table format Test Case Number Inputs Exp Out shippingCost numltems yearsCust Basis PathExplanation / 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.