Assignments for Java - Programming the Internet
- Practice using HTML Assistant
- Create a template web page. Call it TEMPLATE.html.
- Create a simple personal web page based upon the template. Call it PROG1.html
- Put the template and and your personal web page into your VAX server directory ([USER.WWW]).
- Release the html files in the directory
- Verify that your pages are accessible from a public workstation.
- Log into your NT account from a public workstation or from your home.
- Create an original html document which uses all of the html devices used in the html file,
http://cs-netlab-01.lynchburg.edu/courses/java/HTMLDemo.html.
Put the file in your NT account main directory. Call the file PROG2.html.
- Review the JavaScriipt Language Summary at
http://cs-netlab-01.lynchburg.edu/courses/java/JSSynop.html
- Create a web page which implements the while loop and the for loop in the file above. Call this html file, PROG3.html.
- Create a JavaScript program which computes loan payments as discussed in class. Call this file PROG4.html and put it in your NT server account.
- Read Chapter 1 of the text (Basic Concepts) and do the sample program located on page 20. Review the questions at the end of the Chapter (page 25)
- Read Chapter 2 (OOP); especially the following pages: 29-33, 36, 39-52, 56-69. Review the exercises at the end of the Chapter on page 70 and do number 6.
- Read Chapter 3 (Language defined - part1) and review the exercises at the end of the Chapter on page 97.
- Read Chapter 4 (Language defined - part2) , pages 99-126, 131-132, 137-147
- Read Chapter 5 (Arrays and Exceptions), pages 157-182
- Read Chapter 12 (File I/O), pages 515-543..
- Create a program which will sort an input file and put the sorted data into an output file as follows:
- Pick up the name of the input and output files from the command line.
- Read the data from the input file into an array of strings.
- Sort the data in the array using a sort of your choice.
- Write the sorted data from the array to the output file.
Call your file PROG5.java and PROG5.class and put them in your NT server account.
- Read Chapter 9 (the AWT), pages 349 - 431. Review the program selsort6.java.
- Create a mini text editor with a GUI interface. Partial specs follow:
- The user may click a button to open a dialog box to select an input file.
- The user may click another button to open a dialog box to select the name of an output file.
- The selected input and output file names will be placed into text boxes which the user may edit. Thus the user may type in the names of one or both of the files without using the file dialog interface.
- The user will type text into a TextArea. This is the editing window.
- The user may click on a SAVE button to write the text to the output file.
- The user may click on an EXIT button to exit the program.
- The program will note if the text has been saved since it was last modified and ask the user if he/she wants to SAVE before exiting.
- An alternative to the function above is to provide a QUIT button which exits without saving and an EXIT button which saves before exiting.
Call your file PROG6.java and PROG6.class and put them in your NT server account.
- Read Chapter 7 (Applets), pages 261-277