Question: Write a Python program that display s the points earned for a given customer . The program should prompt for the customer name, miles flown
5 def pass_details(): name = input("Please enter customer name:") miles = input("Please enter miles travelled :") status = input("Please enter status level:") 6 7 8 9 LC 1 12 13 14 15 16 17 18 19 20 bif status == "Silver": r = miles * 1 print(name + "earned" + r + points) Delif status == "Gold": r = miles * 1.5 print(name + "earned" + r + points") Delif status == "Platinum": r = miles * 2 print(name + "earned" + r + points else: print("wrong status") 21 22 print("Process another customer?(Enter Y for Yes):") 23 24 if input == 'Y': print('pass_details(p)') 25 26
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
