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
1. Yes
2. No
Third Input Choice
Current Condition of customer's old TV
1. Working
2. Not Working
For Example, if customer want H TV HDLC and he
want to opt Exchange offer for his old TV which is in
working condition then output will be 4800.0 INR
All Input values should be entered in Following
Format.
3.
1
1
Output 4800.0 INR
Note that when customer do not opt for Exchange
Offer, there will be only 2 Inputs.
Answers
Answered by
0
Answer:
renue the tv bat proper interval or time
Similar questions