Important alert: (current site time 5/28/2015 3:25:28 AM EDT)

VB icon

Area of a Circle

Submitted on: 6/12/2007 4:09:41 AM
By: Jake Rodriguez Pomperada  
Level: Intermediate
User Rating: By 1 Users
Compatibility: Java (JDK 1.1), Java (JDK 1.2), Java (JDK 1.3), Java (JDK 1.4), Java (JDK 1.5)
Views: 7796
author picture
(About the author)
     This code will compute and determine the area of a circle. If you like this code you can email me for comments,questions and suggestions at Thank you so much and God Bless From Jake Rodriguez Pomperada :-D

Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.
// Name: Area of a Circle
// Description:This code will compute and determine the area
 of a circle. If you like this code you can email me for comments,questions and suggestions at Thank you so much and God Bless From Jake Rodriguez Pomperada :-D
// By: Jake Rodriguez Pomperada
// Returns:It will return the area of the circle in square inches.
// Side Effects:This is no side effects in using this code.
//This code is copyrighted and has// limited warranties.Please see details.//**************************************

// This code will compute and determine the area
// of a circle.
// If you have any comments and questions you can email me at
// or write me thru mail
// my complete home address is :
// Thank you so much and God Bless :-D
// Program and Design : Jake Rodriguez Pomperada
// Date: June 11, 200711:00 AM
// Language: Java
import java.text.*;
 class circle {
// Declaring Constant Variables
public static final double PI = 3.14159;
public static void main(String arg[]) throws IOException{
 BufferedReader stdin =
 new BufferedReader ( new InputStreamReader (;		 DecimalFormat precisionTwo = new DecimalFormat( "0.00" );
// Variable Declations
 String get_radius;
 double n_Radius= 0.00;
 DecimalFormat twoDigitsPastPoint = new DecimalFormat("0.00");
 System.out.print("\n\t =========================================");
 System.out.print("\n\t ==AREA OF A CIRCLE SOLVER 1.0 ==");
 System.out.print("\n\t =========================================");
 System.out.print("ENTER RADIUS OF A CIRCLE IN INCHES :=> ");
 get_radius= stdin.readLine();
 n_Radius = Double.parseDouble(get_radius);
 System.out.print("A Circle of radius of " + n_Radius + " inches,");
 System.out.print(" has an area of "
+ twoDigitsPastPoint.format(solve(n_Radius)) + " square inches.");
System.out.print("\t\t===================================================== " );
System.out.println("\n\t\t\t THANK YOU FOR USING THIS PROGRAM" ); 
System.out.println("\t\t Program Coding & Design By: Jake Rodriguez Pomperada " );
System.out.print("\t\t===================================================== " );
// A method to solve the Area of the Circle
 public static double solve(double n_value)
double n_area= (PI * n_value * n_value);
} // End of Code

Other 181 submission(s) by this author


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)

Other User Comments

10/7/2008 7:27:39 AMbaguhan sa java..

hi.. good day sir..
can you please help me with my special project? its about identifying triangle by using simple java program..
public class ___
public static void main(String[]args)throws IOException
BufferedReader br=new BufferedReader(new InputStreamReader(;"
are only allowed to use.. no array & java.lang..
if, for, do while are also allowed..
please help me..
(If this comment was disrespectful, please report it.)


Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)

To post feedback, first please login.