Computer Science, asked by sushobhitharsh, 5 months ago

A customer has a choice to buy TV from Set of 3
Company Models provided By Store.
If customer takes an Exchange offer,
• Then customer gets discount of 2% if old TV is not in
working condition
• customer gets discount of 20% if old TV is in working
condition
If customer do not opt for Exchange offer then, he
has to pay MRP of TV as amount
Display the amount customer Has to Pay.
Menu For TV Condition should be displayed Only if
customer choose for Exchange Offer
When user enters invalid option then code should
stop with message "INVALID INPUT", it is should be
displayed in same format as it is case sensitive.
Make sure output text should be in exact format
mentioned above
Assume following List is already seen by customer.
There should be 3 Inputs for each question whose
answer
should be a number given with that
choice.
First Input Choice
Display List (Select TV Model)
1. Samsung 10000
2. Onida 7000
3. HDLC 6000
Second Input Choice
Want to take Exchange Offer​

Answers

Answered by kavitaprajapati56
3

Answer:

item = list(map(int, input().split(' ')))

qty = list(map(int, input().split(' ')))

isMember = input()

total = 0

for i in range(0,len(item)):

if (item[i] == 1):

total += qty[i] * 50

if (item[i] == 2):

total += qty[i] * 100

if (item[i] == 3):

total += qty[i] * 40

if (item[i] == 4):

total += qty[i] * 200

if (item[i] == 5):

total += qty[i] * 300

ans = 0

if (total > 1000):

if isMember == 'y':

ans = (total/100) * 85

else:

ans = total/10

if (total <= 1000):

if isMember == 'y':

for i in range(0,len(item)):

if (item[i] == 1):

ans += ((qty[i] * 50) / 100) * 95

if (item[i] == 2):

ans += ((qty[i] * 100) / 100) * 95

if (item[i] == 3):

ans += ((qty[i] * 40) / 100) * 95

if (item[i] == 4):

ans += ((qty[i] * 200) / 100) * 95

if (item[i] == 5):

ans += ((qty[i] * 300) / 100) * 95

else:

ans = total

print(str(ans) + "INR")

Similar questions