Warning!for my project help me 》write 2 method that would ask the radium of circle to the user and return the circumference and | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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

24th Dec 2016, 2:26 PM
Kemal Ulusoy
Kemal Ulusoy - avatar
9 Answers
+ 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
24th Dec 2016, 2:38 PM
visph
visph - avatar
+ 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 ;)
24th Dec 2016, 2:45 PM
visph
visph - avatar
+ 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!
24th Dec 2016, 2:54 PM
visph
visph - avatar
0
I am beginner 😟 and ı dont know writing code yet thanks a lot for help 😊
24th Dec 2016, 2:43 PM
Kemal Ulusoy
Kemal Ulusoy - avatar
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
24th Dec 2016, 2:51 PM
Kemal Ulusoy
Kemal Ulusoy - avatar
0
I agree with you.Again thanks for your help
24th Dec 2016, 2:57 PM
Kemal Ulusoy
Kemal Ulusoy - avatar
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"); } }
24th Dec 2016, 8:34 PM
bayram akdemir
bayram akdemir - avatar
0
if you want to add area copy of circumreference code and change with Math.PI*radius*radius
24th Dec 2016, 8:48 PM
bayram akdemir
bayram akdemir - avatar
- 1
T urkce yaz yardım edeyim
24th Dec 2016, 8:13 PM
bayram akdemir
bayram akdemir - avatar