Design test cases to achieve branch coverage on the function computeTax (list the branches covered...
90.2K
Verified Solution
Link Copied!
Question
Accounting
Design test cases to achieve branch coverage on the function computeTax (list the branches covered by each test case). If it is not feasible, explain the reason. Use the minimumnumber of test cases to achieve the branch coverage.
HERE IS THE CODE NEEDED FOR PROBLEM:
// incomeList[]: the array recording the individual income items
// childList[]: the array recording the ages of children supported by this person
// parentList[]: the array recording the ages of parents supported by this person
public double computeTax(double[] incomeList, int[] parentList, int[] childList) {