Week 6 Lab Exercise

Document Sample
Week 6 Lab Exercise Powered By Docstoc
					MSTU 4031: Week 2 Lab Exercise


     1. In your mstu4031 directory create a subdirectory called labs.

     2. Change the permissions of the directory using the chmod command.

     3. Change your directory to labs using the cd command.

     4. Create a file called GraphicsLab.java in the labs directory

     5. Write the code to create your class in the GraphicsLab.java file (p.
        143)

     6. Write the code to draw the large rectangle (p. 143)

     7. Write the code draw the medium rectangle (p. 143)

     8. Write the code to draw the small rectangle that fits inside of the
        medium rectangle (p. 143)

     9. Write the code to draw 3 small ellipses below the medium rectangle (p.
        146)

     10. Write the code to label the ellipses S1 – S3. (p. 150)

     10. Either in HTML or Java, write the code to title the applet “Floor plan of
         a diner”

     11. Create an HTML file called GraphicsLab.html that includes the
         GraphicsLab.class. The applet window should be 300 x 300.




                                                               Title
                             Floor plan of a diner
                                                                              Small
                                                                              rectangle
                                                                              Medium
                                                                              rectangle
                     S1              S2                S3


                                                                              Large
                                                                              rectangle
               Ellipse

				
DOCUMENT INFO
Shared By:
Categories:
Stats:
views:13
posted:5/3/2010
language:English
pages:1