NOTE: You must include commenting in all of these assignments at the top. Marks will bededucted for inadequate docum


Part A

1) Writeaprogramthatstoresanarrayof5intvalues(notInteger),aDateobject,and the double value 12.8 into a file named “Assign8_Q1.dat”.

2) Writeasecondprogramtoreadsbacktheinformationstoredin“Assign8_Q1.dat” using the ObjectInputSream and display the information for each item.


Part B: Write code and test the solutions for the following problems from the textbook. Submit the .java files for each question to CMS. The answers are due on March 29th and the programs are to be demonstrated to the Teaching Assistant (Greg) by April 4th. He will ask questions to make sure you understand the material.

Problem 20.1 (Page 760) Problem 20.5 (Page 760)

.      *20.1  (Factorial ) Using the BigIntegerclass introduced in Section 10.14, you can find the factorial for a large number (e.g., 100!). Implement the factorial method using recursion. Write a program that prompts the user to enter an inte- ger and displays its factorial.


    • 7 years ago
    complete solution

    Purchase the answer to view it

    • attachment