A programmer is writing a system to validate the discount percentage applied to a checkout cart. The discount percentage must be an integer between 5 and 25 inclusive.
Below is the Python program used to perform this validation:
1 discount = int(input("Enter discount percentage: "))
2 while discount < 5 or discount > 25:
3 print("Invalid discount")
4 discount = int(input("Enter discount percentage: "))
5 print("Discount applied")
Complete the test plan in the table below to test the validation of discount.
| Test number | Test type | Test data | Expected result |
|---|---|---|---|
| 1 | Erroneous | 30 | (a) |
| 2 | Boundary | (b) | "Discount applied" |
| 3 | Normal | 12 | "Discount applied" |
State the missing values for
(a)
(b)