Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need help programing this in JAVA. Display a list of choices as follows: 1. Area of a circle. 2. Area of a rectangle. 3. Area

image text in transcribed

Need help programing this in JAVA.

Display a list of choices as follows: 1. Area of a circle. 2. Area of a rectangle. 3. Area of a square. 4. Area of a triangle. Prompt the user to select one of the choices. If the user enters a value other than 1-4 print an error message. Using a switch statement to determine which shape was chosen, prompt the user to enter the required dimensions, and calculate the area. If the area is less than 100 print a message saying it is a small circle, rectangle, square, or triangle. If the area is equal to 100 then print a message saying it is an average size circle, rectangle, square, or triangle. If the area is greater than 100 then print a message saying it is a large size circle, rectangle, square, or triangle

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data And Databases

Authors: Jeff Mapua

1st Edition

1978502257, 978-1978502253

More Books

Students also viewed these Databases questions