Computer problems,Computer help
*AX SOFT>>>Programming & Design

Write a Java program that calculates the value of PI and then computes and displays the area of a circle with?


Write a Java program that calculates the value of PI and then computes and displays the area of a circle with radius 1. Guys I'm really really stuck...

If you're stuck, then paste the code that you've written so far, so that we can look at it and make suggestions.

To get a average of what PI is, divide 22/7. THeres your value of PI.
The area of the cirlce is PI r^2. then just use a math formula and do it.

so first make a float variable. for example
var pi_x = 22/7
var r = 1
var total = pi_x * (r^2)

Tags
  General - Computers & Internet   Software   Security   Programming & Design   Facebook   Flickr   Google   MSN   MySpace
Related information
  • Does anyone know what font they are using in this logo?

    It's ITC Studio Script, see ...

  • How do you post links on here?

    If you just type the URL, the website will create the hyperlink for you (a link that can be clicked to go to the website). So for instance, just type "http://www.yahoo.com" and you will g...

  • Does anyone know where I can make my own CSS codes online for free?

    If you are going to do CSS (plain text file with a css extension), then you should go ahead an d get an HTML Editor that will do CSS, HTML, PHP, etc. Matrix Y2K: ...

  • I am creating a menu using <ul> in php?

    you started with LI not UL

    ...
  • How can i know that if i got a good technical service on my web page???

    NEVER get your web hosting from the same people that you paid to build your website. This is putting all your eggs in one basket, and gives you no leverage should you ever have a problem. Ideally, ...

  • What is Monty Burns proxy for today?

    parkingprince.com

    ...
  • Microsoft word layout issues?

    Format the part you want into two columns. Then when you want it to be one column, go back into the column window in the format menu. Select a single column. The select "from this point for...

  • Write a JAVA program to check whether a Character is a VOWEL or NOT???

    Replace the line n=Integer.parseInt(s.readLine()); with n=s.readLine().charAt(0); The Integer.parseInt() method returns an int, but you're assigning it to a char n without a cast... but ...

  •  

    Categories--Copyright/IP Policy--Contact Webmaster