Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

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

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

8. Store all the patient name in the queue data structure using the enqueue method and use the dequeue to remove patient name from the queue data structure and print it. You should notice the first in first out concept.

PLEASE PROVIDE An entire Java solution

AND An 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 with AI-Powered 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

Students also viewed these Databases questions