Question
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started