msoe.edu > Dr. Durant > Courses > SE1020 > Homework

SE-1020 Homework

Homework must be submitted on paper and will normally be turned in in class or in lab. Homework may also be left in my mailbox in L350. Unless otherwise specified, either handwritten work or a computer printout is acceptable. Due dates will be posted on the main class web page.

Week 1, Day 1

  1. Write "method2" to give the same output as "method" as given in W1D1.java

Week 1, Day 2

  1. Exercise 13-16 (you may want to get Exercise 13-15 working first). Here is a test data file. Submit a hard copy of both your code and the output of your program. You do NOT need fully document this program -- just include your name, date, and assignment number (W1D2) in the comments at the top of the file.

Week 2, Day 1

  1. Exercise 13-110. (adding lists of different lengths from files) Submit a hard copy of both your code and the output of your program. You do NOT need fully document this program -- just include your name, date, and assignment number in the comments at the top of the file.

Week 3, Day 1

  1. Write a method that finds the maximum of the integers in a file that should contain only integers. Document at least 3 test cases. Apply these test cases using any method discussed in class or in the textbook. Report on your results, explaining how each test passed or how it failed.

Week 5, Day 1

  1. For Prog1709 from the text, explain why it is possible for the NumberFormatException block to be placed before the FileNotFoundException block.
  2. Exercise 17-8: Write Java code that proves that the finally block is always performed, even if the try or catch block contains a return statement. Be sure to prove both cases.

Week 7, Day 1

  1. Exercise 15-8, sorting addresses. Be sure to implement Comparable<Address> and demonstrate that sorting works for both arrays and an ArrayList<Address>.

Week 8, Day 2

  1. Exercise 16-7, bank accounts. Note that this is different than the account example done in class. Be sure to submit your main program, code for both classes, and sample output.

Week 10, Day 1

Review the daily learning objectives and do one of the following:

Email your question to the instructor; do not submit it on paper. Some of these questions will be selected for in-class review during week 10.


This page was last updated on Saturday, 09-May-2009 09:15:56 CDT.