Question
Create a python program using microsoft visual studio This program should allow the user to check the eligibility and insurance premium amount for a person
Create a python program using microsoft visual studio
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.
Your 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.
Note: You dont need to create any classes and functions for this
Sample Input-Output:
The highlighted text is the output. The remaining are the inputs.
--------------------------------------------------------------------------------
Enter name : Amy
Enter Age : 30
Have you received speeding ticket anytime ? Type Y(Yes) or N (No) : Y
Premium amount for the user would be 1000
--------------------------------------------------------------------------------
Do you want to get the quote for another person ? Type Y(Yes) or N (No) : Y
--------------------------------------------------------------------------------
Enter name : Donna
Enter Age : 28
Have you received speeding ticket anytime ? Type Y(Yes) or N (No) : N
Premium amount for the user would be 500
--------------------------------------------------------------------------------
Do you want to get the quote for another person ? Type Y(Yes) or N (No) : Y
--------------------------------------------------------------------------------
Enter name : Jim
Enter Age : 19
Have you received speeding ticket anytime ? Type Y(Yes) or N (No) : N
Have you taken the driving test ? Type Y(Yes) or N (No) : Y
Premium amount for the user would be 1000
--------------------------------------------------------------------------------
Do you want to get the quote for another person ? Type Y(Yes) or N (No) : Y
--------------------------------------------------------------------------------
Enter name : Max
Enter Age : 21
Have you received speeding ticket anytime ? Type Y(Yes) or N (No) : Y
Have you taken the driving test ? Type Y(Yes) or N (No) : N
User is ineligible for insurance
--------------------------------------------------------------------------------
Do you want to get the quote for another person ? Type Y(Yes) or N (No) : Y
--------------------------------------------------------------------------------
Enter name : Bill
Enter Age : 22
Have you received speeding ticket anytime ? Type Y(Yes) or N (No) : Y
Have you taken the driving test ? Type Y(Yes) or N (No) : Y
Premium amount for the user would be 1500
--------------------------------------------------------------------------------
Do you want to get the quote for another person ? Type Y(Yes) or N (No) : N
--------------------------------------------------------------------------------
The following is the list of eligible users:
Amy
Donna
Jim
Bill
--------------------------------------------------------------------------------
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started