Q1_20251120125435.webp
I

Q1_20251120125435.webp

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
Chưa có bình luận nào.

Thông tin

Category
SWT301
Thêm bởi
Inumaki871
Ngày thêm
Lượt xem
5,599
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom