Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For the scenario below please FOLLOW these instructions! 1) Make a defining diagram that shows the input, processing, and output of the scenario 2) Make

For the scenario below please FOLLOW these instructions! 1) Make a defining diagram that shows the input, processing, and output of the scenario 2) Make a solution algorithm using pseudocode 3) Show testing using the desk checking table method, to include test data, expected results, and a desk checking table. Please make sure your desk checking considers multiple cases including both invalid and valid test data to prove your algorithm will work in all cases

Scenario: Discount Insurance provides vehicle insurance to its consumers. The company is introducing a discount program for its consumers. You have been hired by the insurance company to create a java application to calculate policy discounts for all customers. Not all consumers are eligible for a discount. Only consumers who have had a policy longer than 3 years are eligible. In addition, a consumer must have a driver rating of Excellent, Above Average, or Average. Consumers with a rating of Below Average are not eligible for a discount. The discount amount is calculated based on the drivers rating and percentages of current yearly premium is shown below:

Rating

Percent Discount

Excellent

15%

Above Average

10%

Average

5%

For ex.: A customer holding a policy for 5 years with an Excellent rating and current yearly premium of $450, will get a discount calculated as: $450 * .15 = $67.50

The goal is to make an application to allow a user (a company staff) to continually input consumer data until the user has inputted all consumers and has indicated they are finished entering consumer data. One by one, the application will enable the user to input a consumers name, length of current policy in years, drivers rating and current yearly premium. Based on the data provided, the application must print a good-formatted detail stating whether or not the consumer is eligible for a discount. For consumers eligible for a discount, the application must also print the amount of the discount to be awarded to the customer. Upon completion of entering all customer data, the application will print a well formatted report that includes the total number of consumers entered by the user, a count of consumers that are eligible for a discount, and the average discount amount. Some other requirements: You may not ask the user how many consumers they will enter Your solution must not use arrays. YOUR WORK SHOULD BE IN PSEDOCODE FORMATE!

LAST RULE: PLEASE KNOW WHAT YOURE DOING BEFORE ANSWERING! AND MAKE SURE TO DO ALL PARTS OF THE QUESTION. THIS QUSTION ENTAILS: o Making a defining diagram that shows the input, processing, and output o Making a solution algorithm using pseudocode o Show testing using the desk checking table method, to include test data, expected results, and a desk checking table. Please make sure your desk checking considers multiple cases including both invalid and valid test data to prove your algorithm will work in all cases

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

More Books

Students also viewed these Databases questions

Question

Answer the questions in the table below about this molecule

Answered: 1 week ago