Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
JAVA PROGRAMMING
P.T.O.
(1425)
amityhu
·-~. ::~-~,•ti.
(1425)
amity
' . ...
(20 Marks)
SECTION - B
A I 1t.·111pt a 11y f wo </ u estions out <~{ th rec .
!:.:a c /J (flll'S/ion c arries 10 ,narks .
(i) Supe r
(6)
(iii) Object class
P.T .0 .
(1425)
amityhub.com
------tr#
cl .... ._.._... J _ , ~ . .. .
(1425)
amityhu
· ····~--~,e11mcliP1,~ · - - -
5
JT201 (Click logo to visit website)
Have your program compute the total di s t a nc e
tra velled and th e average time aft e r traversi n g a ll
the locations available . Dse the 1n a p scal i ng fac t o r
of 1 = 0 . 1 miles .
locati ons,
For example, if we consi der only two
1 ts= 3600)·,
t h en (x= 1, y= 1, ts=0) and (x=2 , y = '
f o 1 miles in
then the snake traveJled a distance O •
P .T .0 .
(1425)
amityhub.com
IT201 6
(Click logo to visit website)
( c) Write a program to display current cursor position
of the mouse pointer on an Applet using
MouseMotion Listener interface. (5)
{
C
amityhub.com