subject

Create a Circle class This class should contain…
1. a single instance variable for diameter
2. a constructor taking no parameters
3. an accessor and mutator method
4. methods to find the radius, circumference and area of the circle
5. code in the main methods that creates a Circle object and prints out the radius, circumference and area

Part 2:
Add the following methods to your class…
1. a method that scales the circle up or down by a factor (Remember that
you can’t have a negative circle)
2. a method that returns the number of pieces a circle can be divided into
given the degrees of a single piece
3. a method that prints out a bounding rectangle (that would surround the
Circle) using asterisks
4. add code to your main routine to show the use of your added 3 methods

( I Don't know how to solve and make this. I need help please. )
( I need to make it on a website called Repel. it )
( Its due tmr :c )
( Thank you! )

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 06:00, Disd112984
Which statement is true of web-based social media? a. they allow consumers to interact with and update content. b. they cannot be updated easily, as compared to print media. c. they are expensive to produce and maintain, as compared to print and television. d. they can exist independent of the internet.
Answers: 1
image
Computers and Technology, 23.06.2019 21:30, maddietomlinson113
Examine the list below. which factors positively affect lifetime income? check all that apply.
Answers: 1
image
Computers and Technology, 24.06.2019 03:00, firenation18
Click the "draw structure" button to activate the drawing utility. draw two diastereomers of (1z,4r)−1,4−dimethylcyclodecene and name them, including (e)/(z) and (r)/(s) notation. part 1 out of 4 draw the diastereomer containing a chiral center with s configuration here. window open
Answers: 1
image
Computers and Technology, 24.06.2019 15:30, lizziesuks
What is the function of compilers and interpreters? how does a compiler differ from an interpreter?
Answers: 2
You know the right answer?
Create a Circle class This class should contain…
1. a single instance variable for diameter

Questions in other subjects: