1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Yakvenalex [24]
3 years ago
9

Create a class Circle with one instance variable of type double called radius. Then define an appropriate constructor that takes

an initial value for the radius, get and set methods for the radius, and methods getArea and getPerimeter.
Computers and Technology
1 answer:
Mrrafil [7]3 years ago
4 0

public class Circle {

// the private data members

private double radius;

private double area;

private double diameter;

public void setRadius(double r)

{

 radius = r;

}

public double getRadius()

{

 return radius;

}

public double computeDiameter()

{

 return radius * 2;

}

public double computeArea()

{

 return ((radius * radius) * 3.14);

}

}

You might be interested in
Question 3
prohojiy [21]

The Answer Should Be:

<u>The first thing for you to do when you arrive at an intersection is to stop at the traffic light. Your going to want to listen to the instructions or signals of the traffic Police.</u>

I Hope This Helps? :)

8 0
2 years ago
What is a blog that is set up for advertising purposes and used to send website links and other spam? A. splog B. adlog C. qlog
Alex_Xolod [135]

A. Splog. also known as "spam blog"

3 0
2 years ago
Read 2 more answers
Summarize the features of several stand-alone operating systems ​
katen-ka-za [31]

Answer:

Stand-Alone Operating Systems •Microsoft Windows Mobile –Designed for smartphones and PDAs –Includes simplified versions of Windows programs –Supports handwriting recognition and voice recording –Supports synchronizing with corresponding programs on desktop computers

Explanation:

Stand-Alone Operating Systems •Microsoft Windows Mobile –Designed for smartphones and PDAs –Includes simplified versions of Windows programs –Supports handwriting recognition and voice recording –Supports synchronizing with corresponding programs on desktop computers

8 0
1 year ago
To use an automated teller machine (ATM), a customer must enter his or her four-digit Personal Identification Number (PIN). How
schepotkina [342]

Answer:

10000 possible PINs.

Explanation:

Considering the fact that only numbers are permitted (0 - 9) which gives 10 characters and also that the digits can be repeated, the total number of possible PINs that are possible is 10 x 10 x 10 x 10 = 10000

6 0
3 years ago
Which data type is 2.5?<br> single<br> int<br> float<br> string
Ivenika [448]

2.5 is an example of a float.

Floats are numbers that have decimals.

5 0
2 years ago
Other questions:
  • What is a nonlinear presentation
    9·2 answers
  • Write the definitions for three function named max. Each receives two parameters, of the same type, and returns the larger of th
    12·1 answer
  • (Palindrome integer) Write the methods with the following headers // Return the reversal of an integer, i.e., reverse(456) retur
    9·1 answer
  • At age 16 Cheyanne just got her drivers license
    5·2 answers
  • How to engage more underrepresented and under resourced students in stem programs?
    10·1 answer
  • BRAINLIEST !!A game design document is like a diary for game developers.
    11·1 answer
  • ___________ is a document that describes the locations of variables in the data file and lists the assignments of codes to the a
    12·1 answer
  • Type the correct answer in the box. Spell all words correctly.
    5·1 answer
  • PLEASE HELP! WILL MARK AS BRAINLIEST!
    6·2 answers
  • A class is a type of object that defines the format of the object and the actions it can perform. True False
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!