39.2k views
0 votes
BIGMART Supermarket has different ways of awarding discounts to its customers for each purchase they make. An 8 percent discount is given on the total value of the purchase. In addition, a standard loyalty discount is given if customers have a permanent customer ID card. Your program should indicate the amount payable by the customer after the discounts. Identify the inputs that the program requires from these options:

User Dyarbrough
by
4.5k points

1 Answer

1 vote

Answer:

d) II and IV . See explanation below.

Step-by-step explanation:

Assuming the following list of inputs:

I. The discount percentage

II. The total value of the purchase

III. The loyalty-discount amount

IV. The customer ID card number

V. The amount payable after discount

Possible options for the answer:

a) I, II, and III

b) I and III

c) II, IV, and V

d) II and IV

For this case we want to calculate the amount payable by the customer after the discounts.

And for this case is always necessary the value of the purchase so option II is true. The percent of discount is given so then option I is not true since we know this value.

The option III is not required since the discount is based on the info and if the customer have ID card so then this value is not necessary.

For option IV is necessary know the ID card in order to identify if the person have a permanent or non permanent card in order to apply discounts, this information is useful

And for the last option V that's not an input, since represent the output desired.

So then the correct options are II and IV

d) II and IV

User Arun Bertil
by
5.5k points