Results 1 to 5 of 5
Like Tree3Likes
  • 3 Post By SurfMan

Thread: Please need help with this program :)

  1. #1
    Merogx is offline Member
    Join Date
    Nov 2012
    Posts
    2
    Rep Power
    0

    Unhappy Please need help with this program :)

    hi i need help with this java problem solving , please someone solves it

    Write a Java class (program) that reads from the user the radius of a cylinder and its height
    as real numbers.

    Then calculates and prints the surface area and the volume of the cylinder (both rounded to
    2 decimal places). See the given figure.

    Hint: Use Math.PI for the value of π.


    surface area : A = 2 π r(power2) + 2 π r h

    π = the phi (radius i mean )

    volume : V = π r(power2) h


    Please need help with this program :)-cylinder-rules.jpg

    Thanks :)

  2. #2
    SurfMan's Avatar
    SurfMan is offline Godlike
    Join Date
    Nov 2012
    Location
    The Netherlands
    Posts
    748
    Rep Power
    2

    Default Re: Please need help with this program :)

    Seriously? You post your homework here expecting people to do your work for you (for free)?

  3. #3
    Merogx is offline Member
    Join Date
    Nov 2012
    Posts
    2
    Rep Power
    0

    Default Re: Please need help with this program :)

    it is not a homework it's just question stands as a rock in front of me and i didn't expect that the forum discuses the problems and the chit chat for credit ???!

    so please SurfMan if u can help just say it , u don't fine :D but don't be smart to write this silly comments to me ;)

  4. #4
    SurfMan's Avatar
    SurfMan is offline Godlike
    Join Date
    Nov 2012
    Location
    The Netherlands
    Posts
    748
    Rep Power
    2

    Default Re: Please need help with this program :)

    Let me break this down for you:
    "please someone solves it" - This means, please do this work for me.
    "Write a Java class (program) that..." - Typical start of homework assignment
    "Hint: Use Math.PI for the value of π." - Typical proof of homework assignment

    If you show me what you have done so far and what the problem is, or which part you don't understand, I will help. Even if it's non-compilable code with errors.
    quad64bit, Tolls and DarrylBurke like this.

  5. #5
    quad64bit's Avatar
    quad64bit is offline Moderator
    Join Date
    Jul 2009
    Location
    VA
    Posts
    1,323
    Rep Power
    6

    Default Re: Please need help with this program :)

    No, surf is totally on target, this is a classic homework dump. Even if it isn't, you're asking us to think for you. What have you done so far and where are you stuck?

Similar Threads

  1. Replies: 4
    Last Post: 11-21-2012, 01:19 PM
  2. Replies: 2
    Last Post: 04-02-2011, 12:57 PM
  3. Replies: 13
    Last Post: 03-22-2011, 06:49 AM
  4. changing my program to array working program
    By Chewart in forum New To Java
    Replies: 39
    Last Post: 11-18-2009, 06:53 PM
  5. Replies: 0
    Last Post: 04-04-2008, 02:40 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •