Starting from:
$30

$24

Assignment #1 solution




(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.




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.







(5) Points



Download the attached “Clementine.java” file.



Modify Clementine.java. Use at least four static methods to show structure and eliminate redundancy in your solution.



Submit the final “Clementine.java” file (DO NOT change the file name) online.






(10) Points



For your benefit, I suggest you complete case study 1.5 (DrawFigures, page 40~44, 4th Edition) first.




Solve Chapter 1 Exercises 11 (page56, 4th Edition).



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