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

Write a Python program that displays the points earned for a given customer. The program should prompt for the customer name, miles flown, and status level. The program will then display customer name and points earned. After processing the data, the program should ask if the user wants to process data for another flyer, and repeat the process if the answer is y. Program execution should continue for any number of customers until anything other than y is entered when asked if another flyer should be processed. The program should validate the miles entered(must be non-negative), and the status level label (Silver, Gold, or Platinum).
why cant I get rid of the red underline? Any tips to make my program work ? :(
Thank you!  Write a Python program that displays the points earned for a

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!