Please explain your solution.. The electric company charges according to the fol
ID: 3861959 • Letter: P
Question
Please explain your solution..
The electric company charges according to the following rate schedule: 9 cents per kilowatt-hour (kWh) for the first 300 kWh 8 cents per kWh for the next 300 kWh (up to 600 kWh) cents per kWh for the next 400 kWh (up to 1000 kWh) cents per kWh for all electricity used over 1,000 kWh Assume that maximum usage can be 2,000 kWh. Which test inputs should be selected using equivalence class partitioning method? Construct a table showing equivalence partitions, the selected inputs and the expected outputs. Which test inputs should be selected using boundary-value analysis method? Construct a table showing equivalence partitions, the selected inputs and the expected outputs.Explanation / Answer
the partitions of the test are
1)
Equivalence Class Partition
Test Case Valid/Invalid
<0 Invalid
0-300 Valid
301-600 Valid
601-1000 Valid
>1000 <=2000 Valid
<2000 invalid
2) Boundary Value Analysis
Test Case
0
1
299
300
301
599
600
601
999
1000
1001
1999
2000
2001