I can do rectangles,circles ect.. putting the numbers in before running, but how can you take user input, say from using joptionpane for the size , have place already coded in, pass input to the drawing method. Ex. What shape do you want to draw? Enter 1-square 2-circle 3-rectngle.(Square)then Enter side length of square: 30. then it draws a 30x30 on a window. then asks again what shape

Q 1. (Drawing an in-circle and an ex-circle)
(a) (Pencil and paper) Derive the equations for computing the center of an ex-circle by walking
along two edges and perpendicular to the edges. Explain how the solutions to the equations will
be used to construct the bounding square for the circle.
(b) (Pencil and paper) Derive the equations for computing the center of an incircle by walking along
two of the angle bisectors. Explain how the solutions to the equations will be used to construct the
bounding square for the circle.
(c) Implement the solutions using java programs. The programs should execute as:
java h3q11 Ax Ay Bx By Cx Cy
and java h3q12 Ax Ay Bx By Cx Cy
where all the command line parameters are float values that specify the coordinates of the vertices.
The mapping from real to screen is just an inversion of the Y-axis. Choose a suitably large frame
size (600 should be OK). Choose a side such that the ex-circle is fully visible and extend the other
two sides to show the tangency. The program may require the mathematical solution to be tweaked
so that the circles looks tangential.
(d) Report (due on tuesday October 4). What adaptations did you have to make to the mathe-
matical solution to make the circles looks tangential?

from next tym dont dare to post incomplete codes in the site...u think we are fools siiting out here to download ur code..........could have used more slang, but sparing u..god bless u....

if main is user define function then a program can't run without intialing main()?why........
Since it is a user function, we can give any name to function
but in case of main() it's not so.

## Draw Circle using user input

billApril 21, 2011 at 4:20 AMI can do rectangles,circles ect.. putting the numbers in before running, but how can you take user input, say from using joptionpane for the size , have place already coded in, pass input to the drawing method. Ex. What shape do you want to draw? Enter 1-square 2-circle 3-rectngle.(Square)then Enter side length of square: 30. then it draws a 30x30 on a window. then asks again what shape

## computer graphics

umeshSeptember 27, 2011 at 1:47 AMQ 1. (Drawing an in-circle and an ex-circle) (a) (Pencil and paper) Derive the equations for computing the center of an ex-circle by walking along two edges and perpendicular to the edges. Explain how the solutions to the equations will be used to construct the bounding square for the circle. (b) (Pencil and paper) Derive the equations for computing the center of an incircle by walking along two of the angle bisectors. Explain how the solutions to the equations will be used to construct the bounding square for the circle. (c) Implement the solutions using java programs. The programs should execute as: java h3q11 Ax Ay Bx By Cx Cy and java h3q12 Ax Ay Bx By Cx Cy where all the command line parameters are float values that specify the coordinates of the vertices. The mapping from real to screen is just an inversion of the Y-axis. Choose a suitably large frame size (600 should be OK). Choose a side such that the ex-circle is fully visible and extend the other two sides to show the tangency. The program may require the mathematical solution to be tweaked so that the circles looks tangential. (d) Report (due on tuesday October 4). What adaptations did you have to make to the mathe- matical solution to make the circles looks tangential?

## JAVA

AjayOctober 23, 2011 at 2:34 PMplease send me the source code for the program"to draw line,circle,rectangle & ellipse"

## Help me guys

GerardDecember 2, 2011 at 4:00 PMwhat is the code for making 3 Oval?

## incomplt code

pin2January 10, 2012 at 3:01 PMfrom next tym dont dare to post incomplete codes in the site...u think we are fools siiting out here to download ur code..........could have used more slang, but sparing u..god bless u....

## bluej

Ankit jainFebruary 27, 2012 at 12:53 AMif main is user define function then a program can't run without intialing main()?why........ Since it is a user function, we can give any name to function but in case of main() it's not so.

## I LIED

LOLNovember 13, 2012 at 1:35 AMThis just a troll trolling. Consider yourself warned. Be lucky you were not Rick Rolled.

## java

jelAugust 15, 2011 at 8:21 AM"What is the possible code when getting the Area of a Circle?"

Post your Comment