Vous êtes sur la page 1sur 1

Assignment 2 Subject: Object Oriented Programming with JAVA (150704) Academic Year: 2013-14 Semester: 5 Date: 7 October 2013

Submission Date: Before 30 October 2013 Q-1 Consider a task of vacating a storeroom by 10 workers. At most 4 workers can be inside the storeroom. Each worker takes 5 to 8 seconds to come out of the storeroom and after 10 to 20 seconds try to reenter inside the storeroom. Simulate this environment using multithreading. Write an applet program which shows vertically centered text message scrolling from left to right. On touching left or right border of the applet text message starts to scroll in opposite direction. Text message must be your enrollment no, Name and CPI. It must also remain vertically centered even after resizing an applet. Write an applet program in which small boll keep moving randomly and it changes its direction when touch any of the borders of applet. Modify the program of Q-3 so that ball moves according to mouse dragging. Modify the program of Q-2 so that text message font size increases by 1 point every time page up key is pressed and decreases by 1 point every time page down key is pressed.

Q-2

Q-3

Q-4 Q-5

--- Best of Luck ---

Department of Information Technology G H Patel College of Engineering & Technology Vallabh Vidyanagar, Anand

Vous aimerez peut-être aussi