Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Interface

JAVASCRIPT

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. Display 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.

6. Store all the information in the file. You need to use the loop and keep asking users to enter patient name, height, weight, and birthdate. Your program should calculate BMI Category and Insurance payment category and write it to the file. Your program should stop once user enter q character.

7. Create an interface called as the patient and then implement the interface as well as all the above methods.

PLEASE PROVIDE:

An entire Java solution

Attach the output screenshot created using Microsoft Word

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

SQL Server T-SQL Recipes

Authors: David Dye, Jason Brimhall

4th Edition

1484200616, 9781484200612

More Books

Students also viewed these Databases questions