Answered step by step
Verified Expert Solution
Link Copied!

Question

00
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?

image text in transcribed

image text in transcribed

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions