Question: For the scenario below please FOLLOW these instructions! Make a defining diagram that shows the input, processing, and output of the scenario Make a solution

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

Discount Percent

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:

  • Making a defining diagram that shows the input, processing, and output
  • Making a solution algorithm using pseudocode
  • 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

I REAPEAT IF YOU DO NOT KNOW WHAT YOU ARE DOING DO NOT ANSWER THIS QUESTION! If you actually know what you are doing, please answer the question.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!