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.
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.
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.