Your assignment is to write a Java program to generate your Web page from homework 5. Your program must generate a complete Java program by printing it to standard_out (that is, to the screen). We will grade your program in the following way:
It is very important that we be able to grade your programs automatically. A shell script will be used! In order to use our shell script, we have imposed three submission requirements. First, you must adhere strictly to file naming conventions. Your java program must be named H7username.java. If you use a different name, then our shell script may fail and you will receive a zero for the assignment. Second, your program must print to standard_out, NOT to a file, and it must NOT be a servlet. Third, your program may not use any input files. All data must be embedded into the Java file.
Within the above constraints, feel free to format the web page any way you like. Your program will be graded on correctness, and also on the readability and maintainability of the HTML that it produces (for example, be sure to add carriage returns!).
Hint: An important part of software design is deciding which parts of the application are likely to be changed in the future. Care must then be given to designing those parts for change. One definite thing that will change in this application is the formatting of the output HTML. Try to make this easy.
This homework assignment must be done alone (no partner!).
Submit your homework by emailing the Java program as an attachment to the TA, Upsorn Praphamontripong, at gmuswe432@gmail.com. (Note that you should not post the source on your class website.) We will save your program on our computer, then compile and run it. We will then grade the result by saving the output into HTML files and viewing it with a web browser. Please do not write this program as a servlet and do not write to a named file. If you do, we will not be able to grade it with our shell script and will have to deduct points.