Zoom
23.
24.
return fast == 1;
25.
}
26.
27.
28.
29.
30.
public static int sumofSquares(int num) {
int sum = 0;
while (num > 0) {
int d = num % 10;
31.
sum
dd;
32.
num
10;
33.
}
34.
return sum;
35.
}
36. }
Question 2 (3 points): Assuming you are assigned to conduct the component test for the method
below, please design and create the minimum component test cases (Unit Test case) needed to
achieve 100% statement covergage and 100% decision coverage. (Use question 2 template)
Note: Assume all parameters are provided and have the correct data types.
1. double calculateInsuranceFee (int vehicleType, int age, int years Experience, boolean isVIP) {
า
double heatons
+ 100%
Close