AP Computer Science 4.5 Program Development
Want a study guide too?
AP Computer Science 4.5 Program Development. What would be the best set of inputs to make sure the following code functions as expected?
|AP||AP Computer Science|
|AP Computer Science||Program Development|
|Computer Science||AP Computer Science|
|Test Prep||AP Computer Science|
certain range, we must in put the lower limit and the upper limit. Well first of
all we gotta start with zero. It's a number that should always be included in [someone making the ok sign with their hand]
test inputs, because of its unique property's. Next we need to test whether
the lower than, C, case works. So we should put in a number less than 70, 69 should
work. All right now we can test the C case. We have to put in the lower and
upper limits 70 and 79. The next test case is the, B range, with lower and upper [equations on chalkboard]
limits being, 80 and 91. And finally we can test the A range case, so we should put
in 92. And just like we put in a number below the lowest case, we should put in a
number higher than the highest case. Well anything above 92 should work. Say a
hundred and ten and we've built the following set, which leaves us with B.
Well don't worry you can only shoot for an A next time. [man in classroom crying]