Q1_20250730125142.webp
KimThoa89

Q1_20250730125142.webp

☑Kizspy.me
17.
18.
19.
20.
21.
22.
23.
double methodMultiplier;
switch (method.toLowerCase()) {
case "air":
methodMultiplier 2.0;
break;
case "road":
methodMultiplier = 1.0;
24.
break;
25.
26.
case "water":
methodMultiplier - 1.5;
27.
break;
28.
default:
29.
throw new IllegalArgumentException("Invalid shipping method");
30.
}
31.
32.
33.
double shippingFee distance ratePerSizePerkm * method Multiplier;
return shippingFee;
Page 212
34. }
Question 3 (4 points): You are assigned to do the functional (black-box) test for Calculating Food
Amount function. Writing test cases for this function with the content described below. (Use
question 3 template)
Function Description: This function is used to calculate the daily amount of food for Koi fish in
the pond to help them grow well, prevent waste, and maintain water quality.
Screen Layout:
Zoom
+ 100%
Close
Chưa có bình luận nào.

Thông tin

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

Share this media

Back
Bên trên Bottom