Results 1 to 3 of 3

Thread: beckers robot

  1. #1
    nkaldesic is offline Member
    Join Date
    Dec 2016
    Posts
    1
    Rep Power
    0

    Angry beckers robot

    I really need help with this assignment with becker robots. Please help me

    Add the following methods to your custom robot class:

    move(numIntersections)
    Moves a specific number of intersections in the current direction. For example, if the Robot is on 1, 1, and facing EAST, move(5) will move the robot to avenue 6.
    Accepts an integer for number of spaces to move.
    Returns void.

    pickAll()
    Picks up all things that can be picked up in a given intersection. There is no movement here, the robot is standing on a single intersection and uses this method to pick up all things. The robot won't try and pick up things that s/he can't pick up.
    No arguments.
    Returns an integer representing the number of things picked up.

    putAll()
    Puts down all things in the robot's backpack. There is no movement here, the robot is standing on a single intersection and uses this method to drop all the things that s/he is carrying.
    No arguments.
    Returns an integer representing the number of things dropped.

    pickAllAtIntersection(Intersection)
    Goes to the specified intersection and picks up all the things at that intersection (only the things the robot can pick up). Uses the goToIntersection() and pickAll() methods you wrote.
    Accepts an Intersection object: the intersection to go to
    Returns the number of things the robot picked up as an integer.

    putAllAtIntersection(Intersection)
    Goes to the specified intersection and puts down all the things at that intersection. Uses the goToIntersection() and putAll() methods you wrote.
    Accepts an Intersection object: the intersection to go to
    Returns the number of things the robot dropped as an integer.




    Please make these methods for me

  2. #2
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,226
    Rep Power
    13

    Default Re: beckers robot

    Quote Originally Posted by nkaldesic View Post
    Please make these methods for me
    Sorry, but we don't do other folks work for them here. The best we could do would be to help you understand your assignment. But I have no idea what a becker robot is. I presume it is a canned program to teach programming.

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  3. #3
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    13,541
    Rep Power
    26

    Default Re: beckers robot

    Start with the first method.
    Write the signature and simply have it print out the value entered.
    Test it to make sure it gets called.
    Then change the code inside to do the actual move calculation.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. Using robot
    By opiop65 in forum AWT / Swing
    Replies: 3
    Last Post: 04-18-2012, 07:18 AM
  2. Robot map
    By Naphoria in forum New To Java
    Replies: 5
    Last Post: 01-16-2012, 05:06 PM
  3. Help with Robot class please
    By davetheant in forum New To Java
    Replies: 2
    Last Post: 01-04-2011, 12:13 PM
  4. Robot
    By rp181 in forum Advanced Java
    Replies: 4
    Last Post: 12-07-2010, 12:58 AM
  5. Robot
    By PhQ in forum AWT / Swing
    Replies: 13
    Last Post: 08-26-2010, 12:10 AM

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
  •