Draw a weight over someone in a picture.
What will be an ideal response?
```
public static Picture drawWeightOverMark ( )
{
Picture p = new Picture (
FileChooser.getMediaPath ( " blue¡mark . jpg " ) ) ;
Graphics g = p.getGraphics ( ) ;
g . setColor ( Color .BLACK) ;
// draw the weight
int [ ] xArray = {284,376, 476, 184};
int [ ] yArray = { 56 ,55, 149, 149} ;
g . fillPolygon ( xArray, yArray, 4 ) ;
```
return p;
}
You might also like to view...
The StringLength property stores an integer that represents the number of characters contained in a String.
Answer the following statement true (T) or false (F)
__________ is where application programs and transient operating system routines are loaded.
a. The transient area b. High memory c. Low memory d. The premise of this question is false.
Create a main method for the class DatabaseManager that prints out the first name, last name and age of all the people who are over 30 in the database or who’s last name is “Guzdial”.
What will be an ideal response?
The member access operator is which of the following
a) * b) % c) . d) /