Question: 3.) Problem #3: Area Program - Build a Java Class to Calculate the area of a Figure(call it Area.java. The figure may be a circle,

 3.) Problem #3: Area Program - Build a Java Class to
Calculate the area of a Figure(call it "Area.java". The figure may be

3.) Problem #3: 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 4.) Problem #4: Modify #3 from above. This time use a Select/Case" statement instead of "if" statements to make the decisions

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!