java languge
20751 ABET MdLab V2 - Hrosoft Word bih cs (1 | in ) Sole Nurnbere les said 12 TA + - Aa A A Antal Notes Label Details A. YA x' x abc ho Description of the Problem Computers are playing an increasing role in education. Write a program that will help an elementary school student to calculate the area of different shapes as in UML Class diagram below. ShapeArea -base, int height int - area: double + set / get methods + TriangleArea + ParallelogramArea + display 1. Use the following comments as a guide to calculate the area of shapes given in the formulas below: public class ShapeArea // Write a default constructor that initiate the sides of the shape with value 3, and another and overloaded constructor to assign the value of shapes sides given from the user. I Write set and get methods for all instance variables. // TriangleArea will calculate the area of triangle as formula triangle area = "xbxh Where b = base, h = height 202 C5102 ABET Midtab V2 - Merosoft Word hib (1 | 1) Numbere. 1 21 EES... Aa AA- = = . .by.A A A Notes Label Details parallelogram area = b *h Where b = base, h = height // display method will print the area of the chosen shape using get methods. 2. Write the AreaApp codes that will set 2 objects of shapeArea. Use set methods to assign the values received from the user, calculate the area of chosen shape, and display the area as the sample output given below. Sample output: Welcome to Area of Shapes App Choose which shape you would like to calculate its area_ (Enter 1 for Triangle, or 2 for Parallelogram): 2 Please Enter Base: 5 Please Enter Height: 7 Area of Parallelogram = 35 Would you like to calculate the area of another shape (1:Yes 0:No)? 1 Choose which shape you would like to calculate its area (Enter 1 for Triangle, or 2 for Parallelogram): 1 Please Enter Base: S Please Enter Height: 7 Area of triangle = 17.5 Would you like to calculate the area of another shape (Yes, O: NO) ? 0 Thank you (