Computer Science, asked by keerthuj61996, 1 year 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:
• 7% 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
For the function compute-interest-rate of Q. 3, at Least how many test cases are needed for strong equivalence testing?
a) 6
h) 8
c) 9
ci) 12

Answers

Answered by guptaayushpallab
0

Answer:

6

Explanation:

This is strong equivalence class testing, and not robust equivalence class testing.
So, we can consider :

amount = 1000 to 1 lakh
time = 1 year, 1+ year but less than 3 years & over 3 years but less than 10 years.

so here we get 6% for 1 year, 7% for 1+ but less than 3 year and 8% for 3 or over 3 years but less than 10 years, i.e., 3 cases

similarly, for amount over 1 Lakh but below 1Crore, we have similar 3 interest rates for same time period,

So this gives us another 3 possible cases.

Hence, there are a possible of 6 cases in total for strong equivalence testing and is the least number of tests needed to cover each and every case once.

Similar questions