The formula to find area of circle :: 3.14 * radius * radius The formula to find area of triangle :: 0.5 * base * height Here, We are using two classes, one which contains main method and another one which contains the sub code. The area class contains two method one is circle() that is used to find the area of circle. It takes the radius from user using Scanner class, and the find the area as per the formula giver above. It takes value of PI is defined globally as Constant using final keyword. This method is called…