Question: Area Program Build a Java Class to Calculate the area of a Figure(call it Area.java. The figure may be a circle, or a square or
Area Program Build a Java Class to Calculate the area of a Figure(call it Area.java. The figure may be a circle, or a square or a rectangle. The user will enter the type of figure they want through a Scanner. If they enter a C, proceed to calculate the area of the Circle using values read in for radius. If they enter an S, then calculate the area of a Square using values read in for side. If they enter an R, then calculate using values read in for height and width. Use if statements for this lab. The formulas for each figure are: Circle : Area = 3.14 * radius * radius Square : Area = side * side Rectangle : Area = Height * Width
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
