Equivalence Classes and Boundary Value Analysis Given a program to calculate inc
ID: 3669016 • Letter: E
Question
Equivalence Classes and Boundary Value Analysis
Given a program to calculate income tax based on the following marginal tax rates.
Side Note: An example of using marginal tax rates: on an income of $25K, you pay $0 on the first $10K, 10% for income from $10-20K, and 12% for income from $20-25K, i.e., 0 + 1K + 0.6K = $1.6K.
a) What are the equivalence classes for Income in this problem?
b) What is your test set based on equivalence classes?
c) What are the boundaries for Income in this problem?
d) What is your test set based on boundary value analysis?
Note: enter Income in dollar amounts (integer, no cents).
Income Tax Income < $10K no tax $10K Income < $20K 10% $20K Income < $40K 12% $40K Income < $80K 15% Income $80K 20%Explanation / Answer
1. Following equivalence are chosen to test:
2. Following is the test set for above equivalence classes:
3. Boundry values:
4. Boundry value analysis test cases:
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.