The user enters a value representing a booking discount rate. The discount is a decimal, where 0.05 represents a 5% discount. This allowed discount must be between 0.00 (0%) and 0.40 (40%) inclusive. The entered value needs to be validated.
Construct two different validation tests. Test data for Test 1 is provided in the table.
Complete the table by filling in (a), (b), and (c).
| Test | Validation test | Test data |
|---|---|---|
| Test 1 |
| 0.45 | | Test 2 |
|
|