Problem
Design a program to prepare automobile liability insurance estimate for a customer. The input consists of the customer's name, age and a risk code. A code of 1 indicate a high risk driver with recent moving violations. A code of 2 indicates a low risk driver with no recent moving violations. If the user does not enter a code of l or a code of 2 the input is invalid and an error message is to be printed. The output is an insurance estimate and should contain the customer's name, age, risk code, a message identifying the customer as a high insurance risk or a low insurance risk and the cost of insurance coverage. If the customer is less than 25 years of age and has a risk code of 1 (high risk) the cost of insurance is $100,000. If the customer is 25 years of age or more and has a code of l the cost of insurance is 800,000. If the customer is 25 years of age or more and has a risk code of 2 low risk), the cost of insurance is 500,000. If the customer is less than 25 years and has a risk code of 2 (low risk) the cost of insurance is 650,000. If the risk code is invalid, the message "RISK CODE IS INVALID" should be printed. Your solution should include both the CASE structure and the nested if.