Question: 1 . A program converts student marks that are input as marks out of 1 0 0 to letter grades following the rules below. A

1.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 (0.5 pts)
Hint: ignore the incomplete situation
b.(0.5 pts) How many test cases do you think are required for complete coverage?
And why? (How many tests do you think are needed for each partition)
c.(0.5 pts) Describe a test case where the expected result is a pass.
Title: Student gets an A
Setup: (preconditions)
Action or input:
Expected result:
d.(0.5 pts) Describe a test case where the expected result not a pass
Hint: there are two possible non-pass situations. List them here to help form your title.
1______________________________2____________________________
Title:
Setup:
Action or input:
Expected result:
Question 2
When asked for an insurance quotation, an auto insurance company looks up the base rate of insuring a specific
make, model and year of car. It then multiplies the base rate by percentages according to the business rules
below to calculate the quote for a customer:
Drivers over 55 years of age with good driving records pay the 90% of the base rate.
Drivers who are male and under 25 years of age pay 150% of the base rate.
Anyone who uses the car for business pays a premium of 120% of what they would pay for personal
use only.
Example: the base rate for a 2005 Honda Civic might be $500.00. A retired senior with a good
driving record would pay $450.00 for coverage for insurance to drive 2005 Honda Civic. However,
if that senior has a business as a messenger for which he uses the car, his rate becomes $540.00.
a.(1 pts) Draw a decision table to calculate the quotation for a client
Hint: start by deciding:
What are the conditions that determine outcomes?
What are the possible outcomes?
Draw your table here:
b. Use the decision table above to help design test cases for the test objective:
Every driver who requests a quotation is told the correct rate.
Notes:
Criteria for success refers to deciding whether application passes the test, not whether the
driver gets insurance.
Test Case 1(1 pts) Test Case 2(1 pts)
Identifier/title
Criteria for success:
Details:
Preconditions
Operation/Action performed
Postconditions

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!