Question: Software engineering 2. (a) Consider the following program to calculate tax. Generate test data for () path test and (ii) equivalence partitioning test. As input,
2. (a) Consider the following program to calculate tax. Generate test data for () path test and (ii) equivalence partitioning test. As input, you are given the amount of taxable income.(30 points) Tax--0; If1axable-income=0 then Tax=0; If Taxable-Income 10000 Then Tax-Tax+1000 Tax=Tax+0.10*Taxable-income Else If Taxable-Income 20000 Tax-Tax+ 1200 Tax=Tax+0.12*(Taxable-income-10000) Then ELSE If Taxable-Income>30000 Tax=Tax+1500 Tax-Tax-+0.15*(Taxable-Income 20000) Then ELSE If Taxable-Income
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
