Specification: Employees receive a bonus depending on how long they have been working for the company
▪ employees who have worked more than 3 years get 50% of salary.
▪ more than 5 years get 75%
▪ more than 8 years get 100%
▪ assume that the number of years is positive and less than 40
Suppose you are testing a program that takes number of years as input and computes a bonus. Which of the following are correct test cases on the basis of equivalence partitioning?
A. 2, 4, 6, 10
B. 3, 40
C. 3, 5, 8, 40
D. -6, 2, 4, 6, 10, 80