Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This is Java 0) Create a project called Lab2-Areas 1) Create a java class called Areas (do not include the main method in this class)
This is Java 0) Create a project called Lab2-Areas 1) Create a java class called Areas (do not include the main method in this class) 2) Create a method for the following: - areaCircle - areaSquare - areaTriangle - areaRectangle - areaTrapezoid 3) Create another class called CalculateAreas 4) Have the main method in this class. Instantiate/Construct the Area object 5) Initialize variables for the appropriate sides (base, height, etc.) 6) Initialize variables for the 5 areas from the Area class 7) print out the 5 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