Computer Science, asked by chandu7508, 3 months ago

A retail shop has provided a discount sale on their products. A module for calculating discount for the total amount of purchase is decided by the following factors

a) below 5000 then no discount

b) 5000 to 20000 then 5% discount

c) 20001 to 50000 then 10 % discount

d) above 50000 then 15% discount

Choose from the below appropriate test cases using equivalence partitioning for the above scenario

A) Input Expected Output
2000 No Discount
7000 5%
30000 10%
60000 10%

B) Input Expected Output
2000 No Discount
35000 5%
30000 10%
60000 15%

C) Input Expected Output
2000 No Discount
7000 15%
30000 10%
60000 5%

D) Input Expected Output
2000 No Discount
7000 5%
30000 10%
60000 15%​

Answers

Answered by vishakasaxenasl
6

Answer:

The correct answer is option (d)

Input Expected Output

2000 No Discount

7000 5%

30000 10%

60000 15%​

Explanation:

Since total amount of purchase is decided by the following factors

a) below 5000 then no discount

b) 5000 to 20000 then 5% discount

c) 20001 to 50000 then 10 % discount

d) above 50000 then 15% discount

Only the option (d) follows the given deciding factors

2000 No Discount

7000 5%

30000 10%

60000 15%​

#SPJ3

Answered by jhangir789
0

The correct option is, D) Input Expected Output.

                                        2000 No Discount.

                                        7000 5%.

                                        30000 10%.

                                        60000 15%​.

Since total amount of purchase is decided by the following factors:

a) below 5000 then no discount.

b) 5000 to 20000 then 5% discount.

c) 20001 to 50000 then 10 % discount.

d) above 50000 then 15% discount.

Only the option (d) follows the given deciding factors

2000 No Discount.

7000 5%.

30000 10%.

60000 15%​.

How do you find a discount amount?

  • Find the original price (for example $90 )
  • Get the the discount percentage (for example 20% )
  • Calculate the savings: 20% of $90 = $18.
  • Subtract the savings from the original price to get the sale price: $90 - $18 = $72.
  • You're all set!

What is discount and example?

  • The definition of discount is reduced prices or something being sold at a price lower than that item is normally sold for.
  • An example of something described as discount is a purse sold for 50 percent off its normal price or a store that focuses on selling designer items at below-market prices.

What called discount?

  • A reduction made from the gross (see gross entry 1 sense 3b) amount or value of something: such as a(1) .
  • A reduction made from a regular or list price offering customers a ten percent discount buy tickets at a discount.

Hence,  the total amount of purchase is  above 50000 then 15% discount.

#SPJ2

Similar questions
Math, 3 months ago