Question

In: Computer Science

Problem Descriptions: A membership wholesale store is launching its 10th anniversary celebration. New customer now has...

Problem Descriptions: A membership wholesale store is launching its 10th anniversary celebration. New customer now has a welcome offer of a $20 gift card when pay the $45 annually membership fee, start from first year. Furthermore, all members (including new members) who spend more than $200 will see a $20 cash back on check list, and another $30 when spend $400 or more.Suppose we are to test a system which calculate the total amount of a random customer’s shopping cart, and assume all current customers choose not to pay the annual membership fee at this purchase. An input to the system contains two values, (N, Y). Y is a float >= 0 represents the total value of the customer’s shopping cart excluding the first membership fee. N is a boolean value only accept True or False which shows whether the customer is a new member or not. Output P is a float represents the total pay at cashier.Design test cases to cover all boundaries for this system. Some invalid test cases must also be designed. Note: a test case should contain both input and expected output, i.e., ((N, Y), P).

Solutions

Expert Solution

Partition of the variables:

The system contains two variables :

N is boolean : NewCustomer | ExistingCustomer

New -> 1

Existing -> 0

We can design the boundary testcases for the two customer types.

Y the cart value > 0 float

Partitions Invalid <= 0 | 1 - 200 | 200 - 400 | 400 and above

Boundary value analysis or BVA is picking the values at the boundaries

  • Min
  • Min +
  • Normal
  • Max -
  • Max

Sample cases:

(('1',150),130)

Invalid

(('1',-5),"Error Message") - This invalid test case intention is to check how the system responds when Y is < 0 or negative.

Boundary cases:

(('1',200),180)

(('1',400),350)

(('1',401),351)

(('0',200),200)


(('0',400),370)

(('0',401),350)

Adding robustness is to test beyond boundary for Min - and Max + values for the input parameters.

Hope this information helps.

If you have any doubts, feel free to ask

And kindly upvote if you like my answer

Stay safe.

Let me know if you have any doubts or if you need anything to change. 

If you are satisfied with the solution, please leave a +ve feedback : ) Let me know for any help with any other questions.

Thank You!
===========================================================================

Related Solutions

The Customer Service Center in a large New York department store has determined that the amount...
The Customer Service Center in a large New York department store has determined that the amount of time spent with a customer about a complaint is normally distributed, with a mean of 9.9 minutes and a standard deviation of 2.4 minutes. What is the probability that for a randomly chosen customer with a complaint, the amount of time spent resolving the complaint will be as follows. (Round your answers to four decimal places.) (a) less than 10 minutes (b) longer...
The Customer Service Center in a large New York department store has determined that the amount...
The Customer Service Center in a large New York department store has determined that the amount of time spent with a customer about a complaint is normally distributed, with a mean of 9.9 minutes and a standard deviation of 2.7 minutes. What is the probability that for a randomly chosen customer with a complaint, the amount of time spent resolving the complaint will be as follows. (Round your answers to four decimal places.) (a) less than 10 minutes (b) longer...
The Customer Service Center in a large New York department store has determined that the amount...
The Customer Service Center in a large New York department store has determined that the amount of time spent with a customer about a complaint is normally distributed, with a mean of 9.1 minutes and a standard deviation of 2.4 minutes. What is the probability that for a randomly chosen customer with a complaint, the amount of time spent resolving the complaint will be as follows. (Round your answers to four decimal places.) (A) less than 10 minutes (B) longer...
The Customer Service Center in a large New York department store has determined that the amount...
The Customer Service Center in a large New York department store has determined that the amount of time spent with a customer about a complaint is normally distributed with a mean of 9.3 minutes and a standard deviation of 2.5 minutes. 1) What is the probability that for a randomly chosen customer with a complaint the amount of time spent resolving the complaint will be less than 12 minutes? Write your answer to four decimal places. 2)  What is the probability...
the customer service center in a large New York department store has determined that the amount...
the customer service center in a large New York department store has determined that the amount of time spent with the customer about a complaint is normally distributed with the mean of 9.3 minutes and a standard deviation of 2.2 minutes what is the probability that 4 randomly chosen customer with the complaint the amount of time spent with solving the complaint will be as follows a less than 10 minutes be longer than 5 minutes see between 8 and...
The Customer Service Center in a large New York department store has determined that the amount...
The Customer Service Center in a large New York department store has determined that the amount of time spent with a customer about a complaint is normally distributed, with a mean of 9.1 minutes and a standard deviation of 2.2 minutes. What is the probability that for a randomly chosen customer with a complaint, the amount of time spent resolving the complaint will be as follows. (Round your answers to four decimal places.) (a) less than 10 minutes (b) longer...
The Customer Service Center in a large New York department store has determined that the amount...
The Customer Service Center in a large New York department store has determined that the amount of time spent with a customer about a complaint is normally distributed, with a mean of 8.3 minutes and a standard deviation of 2.7 minutes. What is the probability that for a randomly chosen customer with a complaint, the amount of time spent resolving the complaint will be as follows. (Round your answers to four decimal places.) (a) less than 10 minutes (b) longer...
The Customer Service Center in a large New York department store has determined that the amount...
The Customer Service Center in a large New York department store has determined that the amount of time spent with a customer about a complaint is normally distributed, with a mean of 8.5 minutes and a standard deviation of 2.4 minutes. What is the probability that for a randomly chosen customer with a complaint, the amount of time spent resolving the complaint will be as follows. (Round your answers to four decimal places.) (a) less than 10 minutes (b) longer...
Amanda's Bakery plans to purchase a new oven for its store. The oven has an estimated...
Amanda's Bakery plans to purchase a new oven for its store. The oven has an estimated useful life of 4 years. The estimated pretax cash flows for the oven are as shown in the table that​ follows, with no anticipated change in working capital. Amanda's Bakery has a 14​% ​after-tax required rate of return and a 35​% income tax rate. Assume depreciation is calculated on a​ straight-line basis for tax purposes using the initial investment in the oven and its...
Bakery plans to purchase a new oven for its store. The oven has an estimated useful...
Bakery plans to purchase a new oven for its store. The oven has an estimated useful life of 4 years. The estimated pretax cash flows for the oven are as shown in the table that? follows, with no anticipated change in working capital. Bertha's Bakery has a 14?% ?after-tax required rate of return and a 33?% income tax rate. Assume depreciation is calculated on a? straight-line basis for tax purposes using the initial oven investment and estimated terminal disposal value...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT