Task 3: Arrays (Java) Al Zila Hospital takes readings of blood sugar level for its inpatients every day. Write a Java application to create a class with attributes patient name, patient_ID, age, readings of blood sugar test stored in an array. Define methods to get the patient details, print their details and calculate highest, lowest and average blood sugar levels based on the readings recorded. Sample Test case: Enter Patient details: Name: Salim, ID: P2218, Age: 53, No of readings: 5 Enter the readings in mg/dL: 160 140 120 140 150 Highest blood sugar level: 160, Lowest blood sugar level: 120, Average blood sugar level: 142 Do you want to Continue for other patient Y/N?
Task 3: Arrays (Java)
Al Zila Hospital takes readings of blood sugar level for its inpatients every day. Write a Java application to create a class with attributes patient name, patient_ID, age, readings of blood sugar test stored in an array. Define methods to get the patient details, print their details and calculate highest, lowest and average blood sugar levels based on the readings recorded.
Sample Test case:
Enter Patient details: Name: Salim, ID: P2218, Age: 53, No of readings: 5
Enter the readings in mg/dL: 160 140 120 140 150
Highest blood sugar level: 160, Lowest blood sugar level: 120, Average blood sugar level: 142
Do you want to Continue for other patient Y/N?
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 4 steps with 3 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
How do I add this to the code as it is one of the requirements for existence in the code (Do you want to Continue for other patient Y/N?)
![Microsoft Visual C#](https://www.bartleby.com/isbn_cover_images/9781337102100/9781337102100_smallCoverImage.gif)
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
![Microsoft Visual C#](https://www.bartleby.com/isbn_cover_images/9781337102100/9781337102100_smallCoverImage.gif)
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
![Programming with Microsoft Visual Basic 2017](https://www.bartleby.com/isbn_cover_images/9781337102124/9781337102124_smallCoverImage.gif)
![C++ Programming: From Problem Analysis to Program…](https://www.bartleby.com/isbn_cover_images/9781337102087/9781337102087_smallCoverImage.gif)
![C++ for Engineers and Scientists](https://www.bartleby.com/isbn_cover_images/9781133187844/9781133187844_smallCoverImage.gif)