#Interest rates for several customers with diverse amount to invest using cash or card
#--------------- Write your code below----------------------------# investment_Amount = int(input('what is your investment amount?: ')) Customer_type = input('Are you Cooperate, Retail or Walk in? ') Payment = input('what is your payment mode(cash or card)') interest = '' if Customer_type == 'corporate' and Payment == 'cash': if investment_Amount < 500000: interest = str(0.1investment_Amount) elif investment_Amount >= 500000: interest = str(0.15investment_Amount) elif investment_Amount >=1000000: interest = str(0.2investment_Amount) else: interest = str(0.25investment_Amount) if Customer_type == 'corporate' and Payment == 'card': if investment_Amount < 500000: interest = str(0.105investment_Amount) elif investment_Amount >= 500000: interest = str(0.155investment_Amount) elif investment_Amount >=1000000: interest = str(0.205investment_Amount) else: interest = str(0.255investment_Amount) if Customer_type == 'retail' and Payment == 'cash': if investment_Amount < 500000: interest = str(0.05investment_Amount) elif investment_Amount >= 500000: interest = str(0.1investment_Amount) elif investment_Amount >=1000000: interest = str(0.15investment_Amount) else: interest = str(0.2investment_Amount) if Customer_type == 'retail' and Payment == 'card': if investment_Amount < 500000: interest = str(0.055investment_Amount) elif investment_Amount >= 500000: interest = str(0.105investment_Amount) elif investment_Amount >=1000000: interest = str(0.155investment_Amount) else: interest = str(0.205investment_Amount) if Customer_type == 'walk-in' and Payment == 'cash': if investment_Amount < 500000: interest = str(0.02investment_Amount) elif investment_Amount >= 500000: interest = str(0.08investment_Amount) elif investment_Amount >=1000000: interest = str(0.1investment_Amount) else: interest = str(0.15investment_Amount) else: if investment_Amount < 500000: interest = str(0.025investment_Amount) elif investment_Amount >= 500000: interest = str(0.085investment_Amount) elif investment_Amount >=1000000: interest = str(0.105investment_Amount) else: interest = str(0.155investment_Amount) print(f"if you want to invest {investment_Amount} in great british pounds as a {Customer_type} customer,with {Payment}, you would have to pay interest of {interest}")