cis73111.doc Source: Mr. Sanford, BCC CIS-73 Object Oriented Java Programming I Due 09-21-09 Lab Assignment 1 This first week we are going to write a simple Java Application program so that we can get some more experience in not only writing, but also in compiling and executing a Java Application program using DOS. Use the hello.java application program that we discussed in class as a reference for this assignment. It is the first sample in the sample list on the cis73 Web Page. 1. Write a Java Application program similar to the program on page 21 of the text and the reference (per above), that will print your name, your program major at BCC, plus the name and address of the high school from which you graduated, every time you execute the program. The address should contain the street number and street name, city, state and zip as it would normally appear on an envelope. There should be a "blank line" between each line. 2. Using DOS (not an IDE with Windows), compile the program successfully. 3. Capture a copy of the DOS command that you used to compile the program, (not the complete screen) and paste it into the end of your souce file as a comment with a title. 4. Using DOS (not an IDE with Windows), execute the program successfully. 5. Capture a copy of the DOS command that you used to execute the program and a copy of the test results (not the complete screen) showing proof that the program really "works". Paste the DOS command and the test results into the end of the source file as a second comment with a title. 6. Submit an electronic copy of the source file with the required test results pasted in as comments. See item 3 of the Course Policies and the notes at the end of each lab assignment. 7. Note that assignments should be submitted on or before the due date for full credit per the course policies. Notes: 1. Label the end of all classes, methods, and blocks with a comment. 2. Line up the beginning brace { and ending brace } vertically for each block. (i.e. for each class, method, and block) 3. Indent all code between the beginning and ending braces so that the lineup of braces can be easily observed. 4. Include comments at the beginning of every .java source file with lab assignment number, author, date due, and an essay (with paragraphs) at the start of the file describing the functionality of each class as well as how each class “works”. User instructions should also be provided. Are there comments reference important or complex syntax? 5. Insert dividers/separators (i.e. a line of dashes or a line of asterisks) between each method and class. 6. Capture your test results and paste them into the end of your .java source class file as comments. 7. Submit an electronic copy of your .java source class files (with the test results “pasted in” as comments) for credit. Note that all submissions should be made as attachments to an email, and sent to the instructor with the following subject line: CIS73 Lab x where x = the lab assignment number. Note that the subject line is case sensitive. 8. Note once again that all duplicate .java files that are submitted for a grade will be NOT be graded. 9. If you are having problems that you and your classmates cannot resolve, you should attempt to resolve them in our lab sessions each week, or make an appointment to meet with me. If all else fails then get back to me via email....We care about the students that care!