Computer Science, asked by boyyts13, 9 months ago

In a certain bank, customers are offered the following interest rates on deposits
For deposits of any amount between Rs. 1000 and Rs. 1 Lakh, the rate of interest:

6% for deposit upto 1 year

7% for deposit over 1 year but less than 3 years

8% for deposit over 3 years and less than 10 years
For deposits of any amounts between Rs. 1 Lakh to less than 1 crore, the rate of interest:

76 for deposit upto 1 year
8% for deposit over 1 year but less than 3 years
9% for deposit over 3 years and less than 10 years

A function named compute.interest-rate(amount, months) was developed by the bank to compute
the interest rate applicable for a deposit made by a customer. At least how many test cases are needed
for weak equivalence class testing of the function compute-interest-rate?

a) 2
b) 3
c) 5
d) 6

Answers

Answered by visheshagarwal153
1

Answer:

d) is the right answer hope it helps mark me as Brainliest

Answered by letmeanswer12
0

2 test cases are needed for weak equivalence class testing of the function compute-interest-rate

Explanation:

Weak equivalence class testing is based on the presumption of one fault, meaning that it is rarely an error caused by two or more simultaneous faults. Weak equivalence class testing therefore only requires one variable per equivalence class.

In the given problem,

  • The customer's deposit amount is one class variable.
  • The customer's deposit period is one class variable.

Hence, at least 2 test cases are required for weak equivalence class testing of the function compute-interest-rate.

Similar questions