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:

  1. 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

  2. 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

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!