Question
Assignment Peak and off-peak times provide an obvious source of equivalence classes for the start and duration of the call. A call could start during
Assignment
Peak and off-peak times provide an obvious source of equivalence classes for the start and duration of the call. A call could start during peak or off-peak hours, and it could end in peak or off-peak hours (because the maximum duration of a call is just under an hour, a call can cross the peak/off-peak boundary once, but not twice). A call could also cross over the boundary between days, and this wrapping must be handled correctly. A good set of boundaries for the start of the call would be: 00:00, 06:00, 07:00, 18:00 and 19:00. A good set of boundaries for the duration of the call would be the minimum and maximum durations 00:00 and 59:59. We dont need to test every combination of start time and duration the duration of the call is only really important if the call starts within an hour of the peak/off-peak switch. We can test the remaining start times with a single duration. The other input values entered by the user are boolean, so only a true value and a false value needs to be tested for each. Again, we dont need to test each boolean option with every possible combination of the previous options one or two cases should be sufficient.
Show more...
This lesson is not ready to be taken.
Description
Peak and off-peak times provide an obvious source of equivalence classes for the start and duration of the call. A call could start during peak or off-peak hours, and it could end in peak or off-peak hours (because the maximum duration of a call is just under an hour, a call can cross the peak/off-peak boundary once, but not twice). A call could also cross over the boundary between days, and this wrapping must be handled correctly. A good set of boundaries for the start of the call would be: 00:00, 06:00, 07:00, 18:00 and 19:00. A good set of boundaries for the duration of the call would be the minimum and maximum durations 00:00 and 59:59. We dont need to test every combination of start time and duration the duration of the call is only really important if the call starts within an hour of the peak/off-peak switch. We can test the remaining start times with a single duration. The other input values entered by the user are boolean, so only a true value and a false value needs to be tested for each. Again, we dont need to test each boolean option with every possible combination of the previous options one or two cases should be sufficient.
in python
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started