Question
A diabetic research center wants you to develop an application that keep truck of glucose reading for a certain number of patients in a given
A diabetic research center wants you to develop an application that keep truck of glucose reading for a certain number of patients in a given day. The application should display a report after each input consisting of full name, age, reading, and a statement related to the glucose level (normal, high, low). When the user ends the input for all patients, your program must display the patient related info. For the patient with the highest glucose level and the patient with the lowest level.
Your input consists of:
-patient full name.
-patient age.
-patient glucose reading (dont enter glucose reading if patient is not fasting for more than 12 hours: need to check with patient first).
Note that you must repeat the input and glucose evaluation for each patient (loop needed). Also, when, user is prompted to continue, validate the user answer accordingly.
Required:
-Code a single method for all of the input. Do not evaluate and reject input if patient is not fasting for 12 hours or more). ( because all your variables are declared within the class they are available to all methods so you can do this)
-Code a method that evaluates the state of the glucose level (80-130 normal, less than 80 too low, over 130 too high)
-Code a method that displays the patient report including his/her state of the glucose level.
-Code a method that determines the patient with highest glucose level.
-Code a method that determines the patient with lowest glucose level.
-Code a method that displays a final report for the patient with higher glucose level.
-Code a method that displays a final report for the patient with lowest glucose level. We are only allowed to use very basic Java.
Methods, calls, while loops, cases.
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