In the file Area. java, we have provided code for the Shape interface and 4 classes that implement Shape. Your task will

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

In the file Area. java, we have provided code for the Shape interface and 4 classes that implement Shape. Your task will

Post by answerhappygod »

In The File Area Java We Have Provided Code For The Shape Interface And 4 Classes That Implement Shape Your Task Will 1
In The File Area Java We Have Provided Code For The Shape Interface And 4 Classes That Implement Shape Your Task Will 1 (96.74 KiB) Viewed 21 times
This is a basic interface task, can anyone help me in java
to finish setting up these methods? Thanks!
In the file Area. java, we have provided code for the Shape interface and 4 classes that implement Shape. Your task will be to add a findArea() method to the Shape interface and implement it in all 4 classes. The 4 classes are: Square, Circle, Triangle and Trapezoid For all the findArea () methods, please return a double that represents the area of the shape. If you are unsure about the area formula for any shapes, you are free to google the formula. Notes: Please be careful with the calculation since we are working with int and returning a double. I recommend converting everything to double before doing the calculation. For the area of the Circle, please use the pi value of 3.14 for calculation.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply