Question: Write a program that prompts the user for his/her age and marital status. Use the following menu for the user to choose marital status: Married
Write a program that prompts the user for his/her age and marital status. Use the following menu for the user to choose marital status:
-
Married
Age
Married
Rate
Less than 25
No
$800.00
Less than 25
Yes
$700.00
Greater than or equal to 25
No
$500.00
Greater than or equal to 25
Yes
$450.00
-
Single
Then calculate and display a rate for auto insurance using the following rules:
Input validation: The user must choose a valid choice from the menu and the users age must be at least 16.
-
Solve the problem in an algorithm
-
Solve the problem in Pseudocode
-
Create a flowchart
-
The Python Code
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
