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.

Results 1 to 3 of 3

Thread: New student needing help!

  1. #1
    Junior Member
    Join Date
    Jan 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default New student needing help!

    I need help writing a java program that can do the following:

    "Write a Java program that reads two points and finds the smallest circle and the smallest rectangle containing the points.

    Note that a circle is represented by its center and radius, and a rectangle by the two diagonal points – top-left and bottom-right corners."

    Could I get some help?

    Thanks.


  2. #2
    Forum Squatter newbie's Avatar
    Join Date
    Nov 2010
    Location
    North Wales
    Posts
    661
    My Mood
    Stressed
    Thanks
    28
    Thanked 115 Times in 106 Posts
    Blog Entries
    1

    Default Re: New student needing help!

    A Java program which writes its own programs huh?

    On a serious note, you need to be specific, ask direct questions preferably accompanied by any issues and errors you've encountered.
    We're not a homework service here and we therefore don't appreciate you pasting your assignment brief and saying you need help.

    Have you started? paste code if you have.
    Please use [highlight=Java]//code goes here...[/highlight] tags when posting your code

  3. #3
    Junior Member
    Join Date
    Jan 2012
    Posts
    11
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Default Re: New student needing help!

    This one is heavy logic. Think about how to use the locations of the points to come up with the radius and the center of the circle. Also, think about why a rectangle only needs those two diagonal points.

Similar Threads

  1. Student.java
    By ruffu054 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: September 12th, 2011, 02:40 PM
  2. student CGPA
    By adamu adamu in forum What's Wrong With My Code?
    Replies: 1
    Last Post: August 8th, 2011, 06:52 AM
  3. Java and programming newbie needing help
    By speedmaster in forum What's Wrong With My Code?
    Replies: 4
    Last Post: December 8th, 2010, 07:57 AM
  4. [SOLVED] [Method] needing some help
    By Perplexing in forum Object Oriented Programming
    Replies: 4
    Last Post: December 2nd, 2010, 05:03 PM
  5. Student TreeMap
    By raphytaffy in forum Algorithms & Recursion
    Replies: 6
    Last Post: March 2nd, 2010, 12:11 AM