Question: Goal: Practice how to use Java API by creating objects from standard Java classes in our Java code. Browse the Java API Documentation on Internet

Goal: Practice how to use Java API by creating objects from standardGoal: Practice how to use Java API by creating objects from standard Java classes in our Java code. Browse the Java API Documentation on Internet and try to find two classes, one for creating twodimensional lines, and one for creating two-dimensional ellipses. Then, write a Java program, to do the following tasks: 2 1- Create a line with the following initial values: from the point (3, 12) to the point (17, 31) 2- Change the end point of the line to (19, 13). 3- Create an ellipse with the following initial values: Height=25, Width=60, The x coordinate of the upper-left corner of the framing rectangle of this ellipse = 4 The y coordinate of the upper-left corner of the framing rectangle of this ellipse = 13 After each of the following steps, test your program by printing the actual and expected results.

Problem 3. (9 points) Goal: Practice how to use Java API by creating objects from standard Java classes in our Java co Browse the Java API Documentation on Internet and try to find two classes, one for creating two- dimensional lines, and one for creating two-dimensional ellipses. Then, write a Java program, to do the following tasks: 1- Create a line with the following initial values: from the point (3, 12) to the point (17,31) 2- Change the end point of the line to (19,13). 3- Create an ellipse with the following initial values: Height=25, Width=60, The x coordinate of the upper-left corner of the framing rectangle of this ellipse = 4 The y coordinate of the upper-left corner of the framing rectangle of this ellipse = 13 After each of the following steps, test your program by printing the actual and expected results. Problem 3. (9 points) Goal: Practice how to use Java API by creating objects from standard Java classes in our Java co Browse the Java API Documentation on Internet and try to find two classes, one for creating two- dimensional lines, and one for creating two-dimensional ellipses. Then, write a Java program, to do the following tasks: 1- Create a line with the following initial values: from the point (3, 12) to the point (17,31) 2- Change the end point of the line to (19,13). 3- Create an ellipse with the following initial values: Height=25, Width=60, The x coordinate of the upper-left corner of the framing rectangle of this ellipse = 4 The y coordinate of the upper-left corner of the framing rectangle of this ellipse = 13 After each of the following steps, test your program by printing the actual and expected results

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!