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
Lunna [17]
3 years ago
7

Create a class named Circle with fields named radius, diameter, and area. Include a constructor that sets the radius to 1 and ca

lculates the other two values. Also include methods named setRadius() and getRadius(). The setRadius() method not only sets the radius, but it also calculates the other two values. (The diameter of a circle is twice the radius, and the area of a circle is pi multiplied by the square of the radius. Use the Math class PI constant for this calculation.) Save the class as Circle.java.
Computers and Technology
1 answer:
REY [17]3 years ago
6 0

Answer:

The code for this class is shown in the explanation section

Explanation:

public class Circle {

   private double radius;

   private double diameter;

   private double area;

   public Circle(double radius, double diameter, double area) {

       this.radius = 1;

       this.diameter = diameter;

       this.area = area;

   }

   public void setRadius(double radius) {

       this.radius = radius;

       diameter = radius*2;

       area= Math.PI*(radius*radius);

   }

   public double getRadius() {

       return radius;

   }

}

You might be interested in
If a tire fails or you have a blowout you should immediately concentrate your attention on
Orlov [11]

Stopping the car. Do not continue driving if your tire has failed or blown out. After you stop the car, call for roadside assistance. Remember, safety first when you're driving!

7 0
3 years ago
Read 2 more answers
Discard an old computer and want to erase my files
Tamiku [17]
You can use a program like SafeErase to wipe all of your data throughly off your computer. 
7 0
3 years ago
As the project manager for a software development project, you are helping to develop the project schedule. You decide that writ
Jobisdone [24]

Answer:

The correct answer to the following question will be "Discretionary".

Explanation:

That form of dependency helps the project or development team to maximize the development process via the growth cycle of that same venture.

  • It is used by managers of the project to establish a "balance" on the timeline.
  • It has also been known as the system which makes use of the largest and most successful quality methods dependent on the team experience.

So, using this type of dependency is far better.

7 0
3 years ago
#Write a function called grade_scantron. grade_scantron should
NARA [144]

En este ejemplo vemos que, por la información dada, no es posible que esta oración tenga coherencia o sentido. En este caso el nexo o conector que une ambas oraciones no debería haberse utilizado, puesto que ambas oraciones no tienen relación. Por ende corresponden a estructuras diferentes y no es posible que mantengan una coherencia. Varias oraciones sin coherencia, generan textos incoherentes.

4 0
3 years ago
A user is having an issue updating an app from Windows Store. Where you go to find more information on the error?
rusak2 [61]

Answer:

A d depends on computer

Explanation:

5 0
3 years ago
Other questions:
  • Ben assembled parts of a computer and created a fully functional desktop PC. He wants the computer to connect to the Internet. W
    10·1 answer
  • A restaurant bill comes to $28.35. Find the total cost if the tax is 6.25% and a 20% tip is left on the amount before tax.​
    6·1 answer
  • A network using multiple cell towers falls under which type of network?
    13·1 answer
  • Which term is used to define the wires on a motherboard that move data from one part of a computer to another?
    13·1 answer
  • A picture of kitchen sink draining system​
    15·2 answers
  • Create a dictionary password cracker or a brute force
    13·1 answer
  • Numerical methods are implementations of mathematical algorithms, but constructed with special consideration for accuracy of sol
    7·1 answer
  • What is the main reason for adding somebody into the BCC list for an email?​
    9·1 answer
  • What is all about programming interactions in the real world.
    6·1 answer
  • Please fill in I give 50 points!!
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!