0
Warning!for my project help me 》write 2 method that would ask the radium of circle to the user and return the circumference and
area of the circle area(5)=78.5 circumference(4)=25.12
9 Antworten
+ 2
All you have to know is the mathematic formula for circle area and circumference... Next, this is a perfect simple exercise for beginner practice ;)
Well, it's Christmass, but do you believe again to Santa Claus ? :D
So, I'm in a good state of mind, so I want to help you even a little...
area = Pi * R²
circumference = 2 * Pi * R
+ 2
Well so, if you don't know writing code yet, how can you have a "project"?
Start learning a little, you'll be quickly capable to write these two functions ;)
+ 2
Sure, I have good understand that's for homework...
But if you have already a ( homework ) project of program, without any code knowlegde, you should start learning yet!
0
I am beginner 😟 and ı dont know writing code yet thanks a lot for help 😊
0
project which means my homework 😂 not generally project just a couple of question but i must writing this calculates in code unfortunately i dont know it fully
0
I agree with you.Again thanks for your help
0
public static void circumference()
{
try{
Scanner sc=new Scanner(System.in);
double radius=sc.nextDouble();
double circumference=0;
circumference=2*Math.PI*radius;
System.out.println("circumreference is=("+radius+")="+circumference);
}
catch(Throwable t)
{
System.out.println("please enter a double value");
}
}
0
if you want to add area copy of circumreference code and change with Math.PI*radius*radius
- 1
T urkce yaz yardım edeyim