Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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;iStep 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