Question: (Python) This program should allow the user to check the eligibility and insurance premium amount for a person based on following criteria: - If the

(Python)

This program should allow the user to check the eligibility and insurance premium amount for a person based on following criteria:

- If the client is 25 years of age or older and does NOT have prior speeding ticket, the premium amount would be $500.

- If the client is 25 years of age or older and has prior speeding ticket, the premium amount would be $1000.

- For clients under 25 years of age and does NOT have prior speeding ticket, the premium amount would be $1,500. But if they have taken a driving course, premium amount would be $1,000.

- If the client is under 25 years of age and has prior speeding ticket, but has also taken a driving course, the premium amount would be $1,500.

- All other clients are refused of insurance coverage.

The task is to ask the user to input the name, age and if they have received speeding ticket in past or not.

If the age of the user is 25 years or more, find out their eligibility and premium amount as per the criteria mentioned above.

If the age of user is less than 25 years, ask the user to input if they have taken the driving test or not. Based on their input, find out their eligibility and premium amount as per the criteria mentioned above.

Once the eligibility is determined, display appropriate output to the user showing them premium amount or ineligibility.

After the output is displayed, ask the user if they want to continue to find out eligibility of another person. If they choose yes, repeat the entire procedure until user chooses no. If they choose no, display the list of names of eligible users. Refer to the sample inputoutput below for example.

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!