Question: JAVA Problem #1: Description: Create Java classes that implement the FigureInterface interface: 1. Squareconstructor accepts a single argument of type double which indicates the length
JAVA
Problem #1: Description: Create Java classes that implement the FigureInterface interface: 1. Squareconstructor accepts a single argument of type double which indicates the length of a side of the square 2. RightTriangleconstructor accepts two arguments of type double that indicate the lengths of the two legs 3. IsoscelesTriangleconstructor accepts two arguments of type double that indicate the height and the base 4. Parallelogramconstructor accepts three arguments of type double that indicate the height, the base, and the angle between the nonbase side and the base Update the RandomFigs application so that it also uses the new FigureInterface classes. Each class should print its area. Sample program output: RightTriangle area 3.00 square area 4.00 IsoscelesTriangle area 4.00 Parallelogram area 8.00 Total: 19.00
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
