Use basis path testing to develop the test cases for the following code. Use the
ID: 3599330 • 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 shares ranges from 0 to 10,000 inclusive and that closing price is $140.00/share. Assume interest truncates to 0.01%
here are instructions for the solution...
public void calculate_balance (int number_of shares, double closing_price) int index; final double [] rate 10.0085,0.0135,0.02,0.025,0.0275,0.035; final double [ fee-50.0,50.0,0.0,0.0,0.0,0.0; if (number of shares 50) 2 4 6 index-0; else 8 if (number_of sharesExplanation / 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.