Q1_20251120125504.webp
I

Q1_20251120125504.webp

Zoom
23.
24.
25.
}
26.
27.
return fast == 1;
28.
public static int sumofSquares (int num) {
int sum = 0;
while (num > 0) {
int d num % 10;
29.
30.
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 calculateInsurance Fee (int vehicleType, int age, int yearsExperience, boolean isVIP) {
double baseFee;
2.
3.
4.
switch (vehicleType) {
5.
case 1: baseFee
1000000; break; // Motorcycle
+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
1,524
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom