Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The goal of this lab is to read the raduis of circles and to compute the area and the perimeter of these circles. To do

image text in transcribed
The goal of this lab is to read the raduis of circles and to compute the area and the perimeter of these circles. To do that, 1. Create the java project (Circle_yourName) with class main. In this file, add the class Circle. 2. In the Circle class, add: 2.1 private data members r called the radius, A for the area and P for the perimeter. 2.2 not static method called readCircle() that initializes the radius r by the keyboard. The r value should be between 0.0 and 20.0. 2.3 not static method areaCircle that computes and returns the area of the Circle according to the following equation: 2.4 a static method PerimeterCircle() that uses an object X of Circle type as parameter and computes the perimeter of that object X according to the following cquation: 2.5 displayCircle() method that shows the area and the perimeter. 3. In main method, 3.1 Create an arrayList of Circles. 3.2 Fill this list by callying the readCircle method 3.3 Compute the area and the perimer of the circles 3.4 Display the lius, the area and perimeter of each circle. 1

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_2

Step: 3

blur-text-image_3

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

MongoDB Applied Design Patterns Practical Use Cases With The Leading NoSQL Database

Authors: Rick Copeland

1st Edition

1449340040, 978-1449340049

More Books

Students also viewed these Databases questions

Question

Why do HCMSs exist? Do they change over time?

Answered: 1 week ago