Question: 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
Get step-by-step solutions from verified subject matter experts
