Professional Documents
Culture Documents
Lab Exercise 2
Lab Exercise 2
A program converts students’ marks that are input as marks out of 100 to letter grades following the
rules below
Marks >=90 is A+
Marks >=80 but <90 is A
Marks >=70 but <80 is B
Marks >=60 but <70 is C
Marks >=50 but <60 is D
Marks <50 is F
If a student is excused from submitting 40 % or more of the grabble work for acceptable reasons
such as sickness, such student(s) gets incomplete (I) score. The student can make resubmission to
complete the assessment.
a. Draw the diagram to show Equivalence partitions and Boundary Values that ensure all input
values are tested. Incomplete situations can be ignored.
b. How many test cases do you think are required for complete coverage and why?
8 test case because there are 6 grade that need to be test and 2 invalid partition.
There are 2 invalid partition because the minimum mark is 0 and the maximum is 100.