I need help writing Visual basic code. I need a project that will prepare automobile liability insurance estimates for customers. The input must contain: The name of the customer The age of the customer The number of traffic violations Based on this information you will determine their status as a driver, following these guidelines:

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

I need help writing Visual basic code. I need a project that will prepare automobile liability insurance estimates for customers. The input must contain:

The name of the customer

The age of the customer

The number of traffic violations

Based on this information you will determine their status as a driver, following these guidelines:

Number of Violations

Risk Code

Risk Type

4 or More

1

High

3

2

Moderate

2

2

Moderate

1

3

Low

0

4

No

More than 4 tickets indicate a “Code 1” driver, which is High Risk. “Code 2” Drivers who have either 2 or 3 tickets, are considered “Moderate Risk” drivers. Any driver with one ticket is deemed “Code 3,” and considered “Low Risk.” Drivers without any tickets are considered “Code 4,” which is “No Risk.” Based upon this classification you can then give them the appropriate quote.

Pricing of Insurance:

Age

Number of Tickets

Risk Code

Price

Under 25

4 or more

1

$480.00

25 or older

4 or more

1

$410.00

Under 25

3

2

$450.00

25 or older

3

2

$390.00

Under 25

2

2

$405.00

25 or older

2

2

$365.00

Under 25

1

3

$380.00

25 or older

1

3

$315.00

Under 25

0

4

$325.00

25 or older

0

4

$275.00

 

Sample output line follows

Customer Name, as a ---- risk driver, your insurance will cost -----.”

 

You can show this output in a label, in a msgbox, etc.  However, you wish to display it is fine.

You are to account for all invalid input. Drivers must be between the ages of 16 and 105. The number of traffic violations cannot be less than 0. Error messages should make sense, for example, "Drivers must be between 16 and 105 years of age" or "Violations may not be less than 0".

The program should properly close or continue (depending upon how you build it). 

Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Concept of Parenthesis
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education