Draw glasses on a picture of a person who doesn't normally wear glasses.

What will be an ideal response?


```
public static Picture drawGlassesOnBarb ( )
{
Picture p = new Picture (
FileChooser . getMediaPath ( " barbara . jpg " ) ) ;
Graphics g = p . getGraphics ( ) ;
g . setColor ( Color .BLACK) ;
// draw glasses
g . drawOval ( 84 , 109 , 25 , 16 ) ;
g . drawOval ( 139 , 104 , 25 , 16 ) ;
g . drawLine ( 109 , 117 , 139 , 112 ) ;
g . drawLine ( 84 , 119 , 65 , 119 ) ;
g . drawLine ( 164 , 111 , 173 , 107 ) ;
return p ;
}
```

Computer Science & Information Technology

You might also like to view...

What is an autonomous system (AS)? Which roles do autonomous systems play in the Internet?

What will be an ideal response?

Computer Science & Information Technology

One application that uses multidimensional databases is an object-oriented database.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

With ______ encryption each vulnerable communications link is equipped on both ends with an encryption device.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Explain the difference between a function prototype and a function definition.

What will be an ideal response?

Computer Science & Information Technology