Question: Regarding the code below, I am receiving error messages when I attempt to compile. The error I receive states that a class, interface, or enum
Regarding the code below, I am receiving error messages when I attempt to compile. The error I receive states that a class, interface, or enum are expected on the lines that contain Patient.java and main.java Can someone explain why this is occurring and how to fix the code?



Looking at the pictures, the code starts with that picture with Patient.java. The second picture is the second section and the first picture is the final section. Thank you in advance.
chegg.com (Math.round(this.height * 10.0)/10.0) + "inches tall and weights " + (Math.round(this.weight * 10.0)/10.0) + " pounds (BMI: " + this.getBMI() + ")"; main.java import java.util.Scanner; public class main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); //loop for get inputs for 3 Patient objects for(int i = 0;i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
