Question: write the java code to implement it . we need a program that will calculate the area of three shapes: Rectangle, Tringle and Circle. Knowing

write the java code to implement it.
we need a program that will calculate the area of three shapes: Rectangle, Tringle and Circle. Knowing that:
, Rectangle area = first ** second
, Tringle area = first ?2** second
Circle area =**(first*first)
1- Define these variables:
First =5, second =3.5,=3.14
2- Print the area of each shape in a separate line use format specifiers to display only 2 decimal integers of the result.
 write the java code to implement it. we need a program

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!