Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 9

A program converts student

marks that are input as marks


out of 100 to letter grades
following the rules
below.
A mark of at least 90 earns A+
A mark of at least 80 earns A
A mark of at least 70 earns B
A mark of at least 60 earns C
A mark of at least 50 earns D
A mark below 50 means F
(Failure)
If a student is excused from
submitting 40% or more of the
gradable work for acceptable
reasons
such as protracted illness, a
mark of I (Incomplete) is
given. Then the student can
make
arrangements to submit
missing work to complete the
course after the end of term.
Note: Numeric marks are
recorded accurate to one
decimal point (0.1) and should
be rounded up
to the nearest whole number
(0.5+  1) by the grading
program.
The objective of testing is to
ensure that students are
assigned the correct letter
grade, given their
numeric mark.
a. Draw the diagram to show
equivalence partitions and
boundary values that ensure all
input
values are tested
(2
A program converts student
marks that are input as marks
out of 100 to letter grades
following the rules
below.
A mark of at least 90 earns A+
A mark of at least 80 earns A
A mark of at least 70 earns B
A mark of at least 60 earns C
A mark of at least 50 earns D
A mark below 50 means F
(Failure)
If a student is excused from
submitting 40% or more of the
gradable work for acceptable
reasons
such as protracted illness, a
mark of I (Incomplete) is
given. Then the student can
make
arrangements to submit
missing work to complete the
course after the end of term.
Note: Numeric marks are
recorded accurate to one
decimal point (0.1) and should
be rounded up
to the nearest whole number
(0.5+  1) by the grading
program.
The objective of testing is to
ensure that students are
assigned the correct letter
grade, given their
numeric mark.
a. Draw the diagram to show
equivalence partitions and
boundary values that ensure all
input
values are tested
(2
A program converts student
marks that are input as marks
out of 100 to letter grades
following the rules
below.
A mark of at least 90 earns A+
A mark of at least 80 earns A
A mark of at least 70 earns B
A mark of at least 60 earns C
A mark of at least 50 earns D
A mark below 50 means F
(Failure)
If a student is excused from
submitting 40% or more of the
gradable work for acceptable
reasons
such as protracted illness, a
mark of I (Incomplete) is
given. Then the student can
make
arrangements to submit
missing work to complete the
course after the end of term.
Note: Numeric marks are
recorded accurate to one
decimal point (0.1) and should
be rounded up
to the nearest whole number
(0.5+  1) by the grading
program.
The objective of testing is to
ensure that students are
assigned the correct letter
grade, given their
numeric mark.
a. Draw the diagram to show
equivalence partitions and
boundary values that ensure all
input
values are tested
(2
Question 1.

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.

<0 0 - 49 50 - 59 60 - 69 70 -79 80 - 89 90 -100 >100


Invalid F D C B A A+ Invalid

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.

c. Describe a test case where the expected result is a Pass.

 Title: Students get A+ for the test


 Precondition: Students has completed the course
 Input: Enter students mark
 Expected Result or Mark: 90 -100 (Pass)

d. Describe a test case where the expected result is NOT a Pass.

 Title: Kelly got 29.5% for the test


 Precondition: Kelly has completed the course
 Input: Enter Kelly mark
 Expected Result / Mark :29.5% In range of 0 – 49 which is Gred F (NOT Pass)

You might also like