Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

View Poll Results: Was this question specfic enough?

Voters
0. You may not vote on this poll
  • yes

    0 0%
  • no

    0 0%
Results 1 to 2 of 2

Thread: Help with java code

  1. #1
    Junior Member
    Join Date
    Oct 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Help with java code

    How can i write a java program that will read the radius and height of a cylinder and compute the volume using the formulas Area= raduis*raduis*3.14159 and Volume= area*height, and have the program report the area of the bottom of the cylinder and the voulme of the cylinder


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,320
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: Help with java code

    To answer your poll, which I truly don't understand why you created, no - you aren't specific enough. What have you tried? Where exactly are you stuck? It seems the math of the first part should be straightforward...have you written any code? We aren't a homework service - the more effort you make to create a concise and answerable question, the higher the chances your question will be answers. The second part makes no sense - the bottom of a cylinder? Where? What cylinder? Does this mean you need to draw a cylinder in a user interface?

Similar Threads

  1. Java files compilation with java code
    By stallapp in forum File I/O & Other I/O Streams
    Replies: 3
    Last Post: July 14th, 2011, 08:12 AM
  2. Replies: 10
    Last Post: April 5th, 2011, 09:09 AM
  3. Need java code help
    By Gradybaby16 in forum What's Wrong With My Code?
    Replies: 8
    Last Post: October 19th, 2010, 10:54 AM
  4. Replies: 2
    Last Post: August 1st, 2010, 06:29 AM
  5. Convert Java Program to Java ME code
    By rinchan11 in forum Java ME (Mobile Edition)
    Replies: 1
    Last Post: October 5th, 2009, 10:18 PM