Results 1 to 6 of 6
  1. #1
    akshaygoel96 is offline Member
    Join Date
    Jan 2013
    Location
    Kent , Washington
    Posts
    7
    Rep Power
    0

    Default Can anybody explain me that problem, i don understand what is it.. please help me

    blem 3-2. Tray Problem. Here’s a sheet of cardboard (L units long and W units wide). A square cut X units long is made in each corner:






    Can anybody explain me that problem, i don understand what is it.. please help me-picture.jpg


    If you cut out the four shaded corners and fold the resulting sides up along the dotted lines, a tray is formed. Build an application that lets a user input the length (L) and width (W). Have the application decide what value X should be such that the tray has the largest volume possible.

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default Re: Can anybody explain me that problem, i don understand what is it.. please help me

    What don't you understand? How to get input from the user? How to calculate volume? What?

    Oh, and you deleted the code from your previous question: Help Help please...........!!

    Please don't do that.

  3. #3
    akshaygoel96 is offline Member
    Join Date
    Jan 2013
    Location
    Kent , Washington
    Posts
    7
    Rep Power
    0

    Default Re: Can anybody explain me that problem, i don understand what is it.. please help me

    no .. I Know, how to get the value from user, but i don know what is in the last line mention, "largest possible value"

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default Re: Can anybody explain me that problem, i don understand what is it.. please help me

    Quote Originally Posted by akshaygoel96 View Post
    no .. I Know, how to get the value from user, but i don know what is in the last line mention, "largest possible value"
    It's asking for you to return the largest possible volume, not value. Do you know how to calculate a volume of a rectangular solid if you know the lengths of its sides?

  5. #5
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

    Default Re: Can anybody explain me that problem, i don understand what is it.. please help me

    Moved from Advanced Java. Please don't post beginner questions in that section.

    Also, I have already asked you to go through the Forum Rules. Please do that before you make any more posts in this forum.

    db
    Last edited by DarrylBurke; 03-13-2013 at 05:06 AM.
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  6. #6
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,431
    Blog Entries
    7
    Rep Power
    20

    Default Re: Can anybody explain me that problem, i don understand what is it.. please help me

    The volume of the tray is (l-2x) * (w-2x) * x; x is the unknown and you have to maximize the volume.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

Similar Threads

  1. Replies: 1
    Last Post: 03-08-2011, 02:52 AM
  2. Replies: 2
    Last Post: 12-13-2010, 01:34 PM
  3. Replies: 3
    Last Post: 12-13-2010, 07:22 AM
  4. Help me to understand the problem
    By ron87 in forum New To Java
    Replies: 1
    Last Post: 03-25-2009, 04:34 PM
  5. help to understand this problem clear
    By beginner21 in forum New To Java
    Replies: 17
    Last Post: 12-01-2008, 04:44 PM

Tags for this Thread

Posting Permissions

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