Starting from:

$25

Assignment 1 SOLUTION

Assignment 1 (20 Points) 
1. (5) Points.
For your benefit, I suggest you complete self-check problems 21, 22,23,24,25,26,27,28 (page
50~52, 4th Edition) first.
a. Download the attached “Chapter1Methods.java” file.
Complete the method first, method second and method third (DO NOT change “method main”),
so that the code produces the following output.
Inside first method
Inside third method
Inside second method
Inside third method
Inside second method
Inside second method
Inside third method
Inside second method
b. Submit the final “Chapter1Methods.java” file (DO NOT change the file name) online.
2. (5) Points
a. Download the attached “Clementine.java” file.
b. Modify Clementine.java. Use at least four static methods to show structure and eliminate
redundancy in your solution.
c. Submit the final “Clementine.java” file (DO NOT change the file name) online.
3. (10) Points
For your benefit, I suggest you complete case study 1.5 (DrawFigures, page 40~44, 4th Edition)
first.
a. Solve Chapter 1 Exercises 11 (page56, 4th Edition).
b. Submit your final “Chapter1Ex11.java” file .
Note: In the Exercise 11, do not answer the following questions.
What redundancy can you eliminate using statics methods? What redundancy cannot be
eliminated?
- The End-

More products