Answered step by step
Verified Expert Solution
Question
1 Approved Answer
why my java eclipse out like this ,this program runnable on mac.. public class AreaRectangle { public static void main (String[] args) { double length
why my java eclipse out like this ,this program runnable on mac..
public class AreaRectangle { public static void main (String[] args) { double length = 0: double width = 0: double area: length = Length (length): width = width(width): area = area (length, width): displayData (length, width, area): System, exit(0): } public static double length (double length){ Scanner keyboard = new Scanner(system.in): System.out.print ("Enter the your length: "): return length = keyboard.nextDouble(): } public static double width (double width){ Scanner keyboard = new Scanner(System.in): System.out.print ("Enter the your width: "): return width = keyboard.nextDouble();} public static double area (double length double width){ double area: area = length * width: System, out.println(area) return area: } public static double displayData (double length, double width, double area){ System out println("the data of this program includes length "+length+" width" +width +"Area" + area): return area: } }
Step 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