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 Select/Case 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started