What is the minimum number of test cases required to cover all valid equivalence partitions for calculating the bonus?
An employee’s bonus is to be calculated. It cannot be negative, but it can be calculated down to zero. The bonus is based on the length of employment. The categories are: less than or equal to 2 years, more than 2 years but less than 5 years, 5 or more years, but less than 10 years, 10 years or longer.
- A. 3.
- B. 5.
- C. 2.
- D. 4.
Answer: Option D