Zoom
29.
30.
31.
27.
28.
}
double feeAfterAge baseFee * factor;
if (yearsExperience >= 5) {
32.
feeAfterAge = 0.9; // 10% discount
33.
}
34.
35.
if (isVIP) {
36.
feeAfterAge = 0.95; // 5% discount
37.
}
38.
39.
return feeAfterAge;
40.
Question 3 (4 points): You are assigned to do the functional (black-box) test for Volume
Calculator function. Writing test cases for this function with the content described below. (Use
question 3 template)
Function Description: This function allows users to calculate the volume of different 3D shapes
(Rectangular Prism, Sphere, Cylinder, Cone) based on the provided dimensions.
Screen Layout:
+100%
Close