Page 1 of 1

Create a UML diagram of the following methods & classes (java language) using LucidApp. - Returns the volume of a Rectan

Posted: Mon May 09, 2022 6:33 am
by answerhappygod
Create a UML diagram of the following methods & classes
(java language) using LucidApp.
- Returns the volume of a Rectangular Prism
- Inherits class "Rectangle" and utilizes the method “Area”
in the calculation
- Returns the volume of a Triangular Prism
- Inherits class "Triangle" and utilizes the method “Area”
in the calculation
- Inherits class “Calculation”
- Returns the product of a number multiplied by itself
based on the exponent
- Requires two input parameters:
a = the number b = the
exponent
- Calls the method “Multiply” to perform the multiply
operation.
Note:
Use Reflexive association and NOT the
Math.pow( ) function.
Example:
Volume of a Cube = a x a x a
a = value entered by the user
b = 3
- Returns the area of the circle using an input parameter
for the radius.
- Inherits class “Reflexive”
- Calls the method “Power” in the calculation
and NOT the Math.pow( ) function.
- Returns the volume of a right circular cylinder
- Inherits class Circle and utilizes the method “Area” in
the calculation
Implementation:
A Java package with the name “Quiz2” is created with a
class named “Geometry”.
In the main method, the user is asked to select if they want to
calculate the area or volume. Once the user enters a response, the
user is asked to select a shape as shown from the expected output
below.
Create A Uml Diagram Of The Following Methods Classes Java Language Using Lucidapp Returns The Volume Of A Rectan 1
Create A Uml Diagram Of The Following Methods Classes Java Language Using Lucidapp Returns The Volume Of A Rectan 1 (5.97 KiB) Viewed 18 times
Select: [1] Calculate Area [2] Calculate volume 1 Select a Shape: [A] Square Rectangle [C]Triangle [D] Circle А Enter a: 5 Area of the square: 25.0 sqm.