Question: Auto Insurance Write a program that prompts the user for his/her age and marital status, Use the following menu for the user to choose marital
Auto Insurance 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 2. Single Then calculate and display a rate for auto insurance using the following rules: Age Married Rate No $800.00 Less than 25 Yes $700.00 Less than 25 500.00 No Greater than or equal to 25 $450.00 Yes Greater than or equal to 25 Input validation: The user must choose a valid choice from the menu and the user's age must be at least 16 Instructions 1# Put you 2 The credit plan at TidBit Computer Store specifies a 10% down payment and an annual interest rate of 12%. Monthly payments are 5% of the listed purchase price, minus the down payment Write a program that takes the purchase price as input. The program should display a table, with appropriate headers, of a payment schedule for the lifetime of the loan. Each row of the table should contain the following items: 1. The month number (beginning with 1) 2. The current total balance owed 3. The interest owed for that month 4. The amount of principal owed for that month 5. The payment for that month 6. The balance remaining after payment The amount of interest for a month is equal to balance x rate /12 The amount of principal for a month is equal to the monthly payment minus the interest owed. An example of the program input and output is shown below
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
