Results 1 to 2 of 2
  1. #1
    tepong is offline Member
    Join Date
    Aug 2010
    Rep Power

    Default coordinates and radius

    Write a program that prompts the user to enter the center coordinates and radius of two circles and determines whether the second circle is inside the first or overlaps with the first.

    Hint: circle2 is inside circle1 if the distances between the two centers
    (<=|r1 r2|)
    circle2 overlaps circle1 if the distance between the two centers
    (<=|r1 + r2|)

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Blog Entries
    Rep Power


    Hello, and welcome to the forum.

    So in essence what you've done is to give us your entire assignment without asking a question and without showing any evidence of effort on your part, and I'm afraid that in this situation there's not much that we can do for you other than to direct you to a tutorial or two.

    I suggest that you post your best solution that you've created so far, and ask as specific questions as possible, and we'll be much better able to help. If you really have no idea how to begin here, then please have a look here: Starting Writing a Program. It's a well-written article that can help.

    Much luck

Similar Threads

  1. Help with printing out new coordinates
    By tyke in forum New To Java
    Replies: 1
    Last Post: 05-10-2010, 06:34 AM
  2. Help with plotting x-y coordinates
    By Fidelcashflow in forum New To Java
    Replies: 3
    Last Post: 12-02-2009, 11:17 AM
  3. Getting mouse coordinates
    By nishant.4545 in forum Advanced Java
    Replies: 3
    Last Post: 07-20-2009, 11:28 PM
  4. button coordinates
    By jacline in forum AWT / Swing
    Replies: 2
    Last Post: 04-05-2009, 10:58 PM
  5. java program help. find the radius of a circle
    By megironi in forum New To Java
    Replies: 1
    Last Post: 03-27-2009, 07:09 AM

Posting Permissions

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