Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Exception Handling You are working as a software developer for a large insurance company. Your company is planning to migrate the existing systems from Visual

Exception Handling

You are working as a software developer for a large insurance company. Your company is planning to migrate the existing systems from Visual Basic to Java and this will require new calculations. You will be creating a program that calculates the insurance payment category based on the BMI score.

Your Java program should perform the following things:

1. Take the input from the user about the patient name, weight, birthdate, and height.

2. Calculate Body Mass Index.

3. isplay person name and BMI Category.

a. If the BMI Score is less than 18.5, then underweight.

b. If the BMI Score is between 18.5-24.9, then Normal.

c. If the BMI score is between 25 to 29.9, then Overweight.

d. If the BMI score is greater than 29.9, then Obesity.

4. Calculate Insurance Payment Category based on BMI Category.

a. If underweight, then insurance payment category is low.

b. If Normal weight, then insurance payment category is low.

c. If Overweight, then insurance payment category is high.

d. If Obesity, then insurance payment category is highest.

5. Implement exception handling using try-catch.

6. Include the finally block.

please provide an entire Java solution

PLEASE provide an output screenshot

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_2

Step: 3

blur-text-image_3

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

New Trends In Databases And Information Systems Adbis 2019 Short Papers Workshops Bbigap Qauca Sembdm Simpda M2p Madeisd And Doctoral Consortium Bled Slovenia September 8 11 2019 Proceedings

Authors: Tatjana Welzer ,Johann Eder ,Vili Podgorelec ,Robert Wrembel ,Mirjana Ivanovic ,Johann Gamper ,Mikolaj Morzy ,Theodoros Tzouramanis ,Jerome Darmont

1st Edition

3030302776, 978-3030302771

More Books

Students also viewed these Databases questions

Question

1.Which are projected Teaching aids in advance learning system?

Answered: 1 week ago

Question

What are the classifications of Bank?

Answered: 1 week ago