Question: A SUE SQOMO Implement the Clinic class as shown below: Clinic -patientID: String -weight: double -Height: double Evaluation Question + readinput(): void + getBMI):
A SUE SQOMO Implement the Clinic class as shown below: Clinic -patientID: String -weight: double -Height: double Evaluation Question + readinput(): void + getBMI): double + writeOutput(): void . NOTES: Add setters and getters methods in the class Clinic. readinput() asks the user to enter the data and stores them in the attributes. . getBMI() computes and returns the body mass based on the height and weight of the individual: BMI= weight/(height* height) writeOutput() prints all the attributes, and calls getBMI method to print the body mass as well. OB Implement a class ClinicDemo with the main method to do the following: Create two objects of Clinic: obj1 and obj2. Read the data of obj1 from the user, you can use i these values: obj1 1534 50.5 Set the data of obj2 using the setters, you can use these values: obj2 4352 46.3 159 Display the information of obj1. Display the body mass of obj2. 156 4 T 12 VER 18
Step by Step Solution
3.48 Rating (151 Votes )
There are 3 Steps involved in it
import javautilScanner class Clinic private String patientID private double weight private double he... View full answer
Get step-by-step solutions from verified subject matter experts
