View the step-by-step solution to:

# PatientInfo Program *The user(employee at the doctor's office) inputs: the patient's first, middle and last name. the patient's smoking status: (Y/N)...

PatientInfo Program

*The user(employee at the doctor's office) inputs:

•      the patient's first, middle and last name.                       the patient's smoking status: (Y/N)

•      the patient's DOB             family history of heart disease: (Y/N)

•      the patient's sex                the patient's 3 cholesterol levels: Total

•      the patient's height in inches               cholesterol, HDL, and LDL

•      the patient's weight in pounds

*if the month was input as an integer, your program will use a switch statement to get the name of the month. If the month was input as a String, your program will use a switch statement to get the month number.

*calculate the BMI for the patient

*calculate the patient's weight in kg (1kg = 0.45359237lbs)

*calculate the patient's age (you can use integer literals to represent the current date) *evaluate the total cholesterol based on age and gender. See charts. (low/normal/high) evaluate the LDL based on age and gender. See charts. (normal/high) evaluate the HDL based on age and gender. See charts. (low/normal)

*Show the patient's first and middle initial followed by their last name in capital letters

*Show the patient's DOB in 2 ways (ex: 1/1/1990 and January 1, 1990)

*Show the patient's age

*Show the patient's height in the form of feet and inches (ex: 6'1")

*Show the patient's weight in pounds (*on the same line show the patient's weight in kilograms) - limit the precision to 2 places after the decimal

*Show the patient's BMI - limit the precision to 1 place after the decimal

*Show the patient's Total Cholesterol (show the evaluation of the Total Cholesterol: high/normal)

*Show the patient's HDL

(extra: show the eval of the HDL: normal/high)

*Show the patient's LDL

(extra: show the eval of the LDL: low/normal)

*Ask the user if the program should process an interpretation of the information:

*If they type Y (not case sensitive), show interpretation of:

*the BMI (underweight/normal/overweight) based on the chart

*If the patient is underweight or overweight, print a message "Referral to registered dietitian recommended."

* if the patient has any of the following risk factors for heart disease: over 60, is a smoker, has a family history of heart disease, BMI suggests they are overweight, total cholesterol is high, LDL is high, or HDL is low. Print "Patient may be at risk of heart disease". Print each reason the patient may be at risk of heart disease.

BMI <18.5:                         underweight

BMI between 18.5 and 25:  normal

BMI > 25:                           overweight

if the patient is under 19:

type of Cholesterol Healthy Level

Total Cholesterol Less than 170mg/DL

LDL Less than 100mg/DL

HDL More than 45mg/dl

Men age 20 or older:

type of Cholesterol                Healthy Level

Total Cholesterol                   125 to 200mg/DL

LDL                                        Less than 100mg/DL

HDL                                       40mg/dl or higher

Women age 20 or older:

type of Cholesterol                Healthy Level

Total Cholesterol                   125 to 200mg/DL

LDL                                        Less than 100mg/DL

HDL                                       50mg/dl or higher

import java.util.Scanner;

### Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

### -

Educational Resources
• ### -

Study Documents

Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

Browse Documents