|
-
Sep 17th, 2006, 02:15 AM
#1
Thread Starter
New Member
Writing a JAVA Program for Calculating the Circumference of a Circle from a radius
i found a similar query under the "C / C++" forum that was answered apparently using the "C" language. im in dire need of it in Java. i was wondering if someone could help me with it as i am having a hard time figuring out where to begin.
can anyone please show me how to write the java program taking into consideration the following conditions? :
1) must be a stand-alone application
2) calculation of circle's circumference must be from a radius which will be an integer value input from the keyboard.
3) create a method that will accept the integer and perform the calculation using the formula: "2*pi*r".
4) may use either the value "3.14" or the Java variable, "Math.PI" for the calculation.
i would really appreciate the help! thanks a bunch in advance!
PS - by the way, i use the Eclipse SDK compiler.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|