Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

The below is question and bottom of that there is answer for this , what I need

ID: 3829250 • Letter: T

Question

The below is question and bottom of that there is answer for this , what I need is I want you explain the good thing about the answer (can be in any part of the answer) and how you can improve the answer, basically just focus in this answer and explain the any good thing about this answer and the way you can improve it

Question:

The WonderCard, Ultd. credit card operations division has revised the criteria for granting credit limit increases to customers. The new business rules are described below. The software has not yet been developed.

The new program will read as input three data items for a customer and determine a new credit limit. The input items are the number of years as a customer, average monthly credit usage, and a credit score ( P = poor, G = good, E = excellent).

If a customer has a credit score of P no credit increase will be granted under any circumstances. Also, no credit increase will be granted to a customer who has been with WonderCard for five years or less and has a credit usage of $0 - $1,000 and a credit score of G.

A five percent increase will be given to customers who have been with WonderCard for more than five years if they have a G credit score and usage of $0 - $1,000; if they have been a customer for more than two years but not more than five years and have a credit score of G and usage greater than $1,000, or have been a customer for up to two years and have a credit score of E and usage not exceeding $1,000, or a credit score of G or E and usage greater than $1,000.

A ten percent increase will be given to customers who have been with WonderCard for more than five years and have a credit score of G and usage in excess of $1,000, or a credit score of E and usage not exceeding $1,000; or if they have been a customer for more than two years but not more than 5 years and have a credit score of E and usage in excess of $1,000.

A fifteen percent increase will be granted to only to those who have been customers for more than five years and have a credit score of E and a usage in excess of $1,000. Determine the number and types of test cases you would use to test this functional requirement, and be able to justify your results.

ANSWER:

At a minimum I would test the following inputs with the expected increase values:

Test cases 0% increase:

•Credit score = P

•Credit score = G, Member years = 5, credit usage = $1000

•Credit score = G, Member years = 5, credit usage = $0

•Credit score = G, Member years = 5, credit usage = value between $0 and $1000

•Credit score = G, Member years = anything less than 5, credit usage = value between 0 and 1000

Test cases 5% increase:

•Credit score = G, member years = anything greater than 5, credit usage = $1000

•Credit score = G, member years = anything greater than 5, credit usage = $0

•Credit score = G, member years = anything greater than 5, credit usage = value between $0 and $1000

•Credit score = G, member years = 3, credit usage = value greater than $1000

•Credit score = G, member years = 4, credit usage = value greater than $1000

•Credit score = G, member years = 5, credit usage = value greater than $1000

•Credit score = E, member years = 2, credit usage = $1000

•Credit score = E, member years = 2, credit usage = value less than $1000

•Credit score = E, member years = value less than 2, credit usage = value less than $1000

•Credit score = E, member years = 2, credit usage = value greater than $1000

•Credit score = G, member years = 2, credit usage = value greater than $1000

Test cases 10% increase:

•Credit score = G, Member years = value greater than 5, credit usage = value greater than $1000

•Credit score = E, Member years = value greater than 5, credit usage = $1000

•Credit score = E, Member years = value greater than 5, credit usage = value less than $1000

•Credit score = E, Member years = 2, credit usage = value greater than $1000

Test cases 15% increase:

•Credit score = E, Member years = value greater than 5, credit usage = value greater than $1000

Edge Cases:

•Large values for credit usage

•Invalid inputs (not G, P, or E for credit score or negative inputs)

•Large values for member years

These functional test cases are justified since the prove that the expected credit line increases will not produce unexpected results and customers will be offered the expected increases.

Explanation / Answer

The following improvements can be made in the answer:

Test case: 0% increase.

The second and third points are not needed as they are described the 4th point.

i.e.

Credit score = G, Member years = 5, credit usage = $1000

•Credit score = G, Member years = 5, credit usage = $0 can be omitted.

Test Case: 5% increase

The following points can be omitted

Credit score = G, member years = anything greater than 5, credit usage = $1000

•Credit score = G, member years = anything greater than 5, credit usage = $0

Credit score = E, member years = 2, credit usage = $1000

•Credit score = E, member years = 2, credit usage = value less than $1000

Test case:10% increase

The following points can be omitted

Credit score = E, Member years = value greater than 5, credit usage = $1000

The answer is correct in terms of test cases. But there is redundancy in it which can be corrected by omitting the above points as they specify the beginning values of a range which can be stated including the edge values in a single point.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote