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 Perimeter Circle() that uses an object X of Circle type as parameter and computes the perimeter of that object X according to the following equation: 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 radius, the area and the perimeter of each circle

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

Intelligent Databases Technologies And Applications

Authors: Zongmin Ma

1st Edition

1599041219, 978-1599041216

More Books

Students also viewed these Databases questions