Help, Computer Engineering

Assignment Help:
Write a class encapsulating the concept of a circle? I have been working on this program for awhile and this is all I have so far... What are my flaws in the program besides not having the set and string for my contrsuctor and mutator methodsimport java.util.*;

public class Circle
{

private double centerX;
private double centerY;
private double radius;

public Circle(String X, double Y, double R);
(
centerX = X;
centerY= Y;
radius = R;
)

public Circle(double centerX, double centerY, double radius);
{

Scanner console = new Scanner(System.in);

public double getcenterX(){
return centerX;}

public double getcenterY(){
return centerY;}

public double getradius(){
return radius; }

public double getPerimeter(){
return 2 * Math.PI * radius;}

public double getArea(){
return Math.PI * radius * radius;}


}

System.out.println("TESTING CONSTRUCTORS:");
System.out.println("No-Arguement Circle: Center(" + Centerx + Centery + ") Radius: " + radius );
}

Related Discussions:- Help

Explain the client-server interaction using messages, Explain the Client-Se...

Explain the Client-Server Interaction Using Messages As we have learned, client- server interaction may be managed in many ways. A message- based interaction is perhaps the bes

Define lazy swapper, Define lazy swapper.  Rather than swapping the who...

Define lazy swapper.  Rather than swapping the whole process into main memory, a lazy swapper is used. A lazy swapper never swaps a page into memory unless that page will be re

Assembly language programming, write an assembly language program for fibon...

write an assembly language program for fibonacci series?

Physics, what is fresnel''s biprism?how it is used to determine wavelength ...

what is fresnel''s biprism?how it is used to determine wavelength of monochromatic source of light

Translate assembly language program to machine , A useful exercise in under...

A useful exercise in understanding assembly language and its relation to machine language is to take a short assembly language program and translate it to machine language by hand.

What are the elements of analysis model, What are the elements of Analysis ...

What are the elements of Analysis model? i. Data Dictionary ii. Entity Relationship Diagram iii. Data Flow Diagram iv. State Transition Diagram v. Control Specifica

What is the functionality of remote login, What is the functionality of Rem...

What is the functionality of Remote Login? Remote Login gives similar functionality of telnet, along with the added functionality of not involving a password from trusted cli

Write a program to check give word is a palindrom or not, Write a program t...

Write a program to check whether a given word is a palindrome or not? # include # include void main() { char word[10]; int length=0,mid,count=0; clrscr();

Structural classification-flynns classification , Structural Classification...

Structural Classification Flynn's classification examine the behavioural concept and does not receive into consideration the computer's structure. Parallel computers can be cla

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd