Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

write a java program for motor insurance company in order to help the company to manage their clients membership y in order to help the

write a java program for motor insurance company in order to help the company to manage their clients membership
image text in transcribed
image text in transcribed
y in order to help the company to manage th Write a java program for a motor insurance compan clients' membership. This company has two types of clients, which are represented by a character either a new customer (N) or an existing customer (E). Hence, your program should be able to deal with different types of users according to the following eir .New customer (N): Your program should prompt the user to enter his/her information, which includes: Customer name, age, driving license number. Then the customer should select the type of package that he/she wants to buy (using switch), which can be either: Package Number Package Description Insurance for 1 vehicle Insurance for 2 vehicles Insurance for more than 2 vehicles Customer should enter the number of vehicles) Cost (RS 450.5 830 380 per vehicle Your program should then calculate and display the total cost of the insurance to the new customer Recognize invalid input Validate customer age: It should be a positive value and the customer is 18 years old or older Validate driving license number: It should be 16 characters long. - If an input is incorrect, allow the user to re-enter it Existing customer (E): The insurance company would like to provide a "No Claim Discount" for their existing motor insurance clients only when they intend to get motor insurance for their vehicles according to the following conditions If there is no claim for 3 years or more, the customer will get a 30% discount. If there is no claim for 2 years, the customer will get a 20% discount. If there is no claim for l year, the customer will get a 10% discount. * *

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts International Edition

Authors: David M. Kroenke

6th Edition International Edition

0133098222, 978-0133098228

More Books

Students also viewed these Databases questions

Question

How do Excel Pivot Tables handle data from non OLAP databases?

Answered: 1 week ago