applet exercise

2
Develop an applet that receives three numeric values as input from the user and then display the largest of three on the screen. write a HTML page and test the applet. 2. Write an applet to draw the following shapes : a) Cone b)Cylinder c)Cube d) Square inside a circle e) Circle inside a asquare. 3. Design applet to display bar chart for the following table which shows the annual turnover of XYZ company during the period 1997 to 2000. year : 1997 1998 1999 2000 Turnover (in Crores) : 110 150 100 180 4. Create an applet with a text field and three buttons. when press each button make some different text to appear in the text field. 5. Add a check box to the applet created above. Capture the event and listen different into the text field. 6. Create an applet with a button and text field. Write a event handler so that the button has the focus characters typed into it will appear in the text field. 7. Create an applet called Greeting class which displays a hello world message. Post this applet on the web page associated with your Computer Science account.Change the Greeting class applet to include some message and your name. 8. Creating a Java applet which finds palindromes in sentences. Your applet will have two input controls; One input will be a text field for entering sentences, the other input will be a text field or scroll bar for selecting the minimum length a palindrome to be shown. Your applet will output the first 10 palindromes it finds in the sentence.

Upload: r-gandhimathi-rajamani

Post on 26-Dec-2014

393 views

Category:

Documents


4 download

TRANSCRIPT

Page 1: Applet Exercise

Develop an applet that receives three numeric values as input from the user and then display the largest of three on the screen. write a HTML page and test the applet.

2. Write an applet to draw the following shapes : a) Cone b)Cylinder c)Cube d) Square inside a circle e) Circle inside a asquare.

3. Design applet to display bar chart for the following table which shows the annual turnover of XYZ company during the period 1997 to 2000.

year : 1997 1998 1999 2000Turnover (in Crores) : 110 150 100 180

4. Create an applet with a text field and three buttons. when press each button make some different text to appear in the text field.

5. Add a check box to the applet created above. Capture the event and listen different into the text field.

6. Create an applet with a button and text field. Write a event handler so that the button has the focus characters typed into it will appear in the text field.

7. Create an applet called Greeting class which displays a hello world message. Post this applet on the web page associated with your Computer Science account.Change the Greeting class applet to include some message and your name.

8. Creating a Java applet which finds palindromes in sentences. Your applet will have two input controls; One input will be a text field for entering sentences, the other input will be a text field or scroll bar for selecting the minimum length a palindrome to be shown. Your applet will output the first 10 palindromes it finds in the sentence.

9. Convert an application to an applet and put it on your web page.

10. What changes do you suggest to make the application more practical and usefull.

11. Write a program which displays a text message coming down the screen by moving left to right and modify the above program insted of text moving from left to right it moves top to bottom.

12. Write a Java program to find the area and perimeter of a circle. Use BufferedReader class.

13. Write a java program using StringBuffer class for sub string removal from a string.