Implementing Project 7 - File I/O Sample Results Note: Except for the menu changes noted below,...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Implementing Project 7 - File I/O Sample Results Note: Except for the menu changes noted below, output should not change from Project 5. However, saving the contact book, exiting the program, restarting the program, and then loading the contact book should result in all data being restored. Steps 1. Make a copy of your Project 5 NetBeans project or the one provided by the instructor. If using the instructor's version be sure to rename the package to match your LCC username. 2. Create the "ContactFileManager" class using your UML class diagram and the design requirements as a guide. 3. Modify the existing Contact and ContactBook classes according to the changed made to your class diagram... a. Contact must implement Serializable. b. ContactBook must include the two new methods. 4. Modify the existing ContactApp class to add two new options to the menu. It should now match the sample below and function appropriately, asking the user for a file name whenever they choose to save or load the contact book. 5. Remember to create file, class, and method header comments which adhere to the course Programming Standards document. 6. Prepare your project for submission. Refer to the steps from Project 1 or the "Submitting Your Project" video. 1) List All Contacts 2) Add a Contact 3) Update a Contact 4) Remove a Contact 5) Save Contact Book 6) Load Contact Book 7) Exit Implementing Project 7 - File I/O Sample Results Note: Except for the menu changes noted below, output should not change from Project 5. However, saving the contact book, exiting the program, restarting the program, and then loading the contact book should result in all data being restored. Steps 1. Make a copy of your Project 5 NetBeans project or the one provided by the instructor. If using the instructor's version be sure to rename the package to match your LCC username. 2. Create the "ContactFileManager" class using your UML class diagram and the design requirements as a guide. 3. Modify the existing Contact and ContactBook classes according to the changed made to your class diagram... a. Contact must implement Serializable. b. ContactBook must include the two new methods. 4. Modify the existing ContactApp class to add two new options to the menu. It should now match the sample below and function appropriately, asking the user for a file name whenever they choose to save or load the contact book. 5. Remember to create file, class, and method header comments which adhere to the course Programming Standards document. 6. Prepare your project for submission. Refer to the steps from Project 1 or the "Submitting Your Project" video. 1) List All Contacts 2) Add a Contact 3) Update a Contact 4) Remove a Contact 5) Save Contact Book 6) Load Contact Book 7) Exit
Expert Answer:
Answer rating: 100% (QA)
To implement the file IO functionality in the Contact Book application you need to follow the steps outlined below Step 1 Create the ContactFileManage... View the full answer
Related Book For
International Marketing And Export Management
ISBN: 9781292016924
8th Edition
Authors: Gerald Albaum , Alexander Josiassen , Edwin Duerr
Posted Date:
Students also viewed these programming questions
-
Use java networking sub progrMMNING LAMHUIAGE NTO SOLVE ALL THE QUESTION, Note solve all the question or i rate unhelkpful Calculate the average MPG for each vehicle. a. Enter a formula in cell C10...
-
Design a Java class that represents a cache with a fixed size. It should support operations like add, retrieve, and remove, and it should evict the least recently used item when it reaches capacity.
-
According to the law of sales contracts, all parties must act in good faith, which means they must act honestly. True/False
-
The five top Oklahoma state officials are displayed in Table 1.2 on page 11. Use that table to solve the following problems. a. List the 10 possible samples (without replacement) of size 3 that can...
-
David, LaDeana, and Lydia are the sole partners and workers in a company which produces fine clocks. David and LaDeana each are available to work a maximum of 40 hours per week at the company, while...
-
Copy your worksheet from Question 6 into another worksheet. Change the increase from 10% to 18%. Protect the worksheet, so that changes cannot be made. Question 6 Open a new spreadsheet. Type...
-
(Entries for Conversion, Amortization, and Interest of Bonds) Volker Inc. issued $2,500,000 of convertible 10-year bonds on July 1, 2010. The bonds provide for 12% interest payable semiannually on...
-
what is meant by the term functionality of a database management system? Explain the responsibility of any two functionalities of a database management system. Discuss how a database transaction is...
-
Their 1.5 inch, 90-degree copper elbow (see below) is a very popular item in the plumbing line that comes packaged in 10 elbows per box. The box costs about $65 to Western, and Western sells it at...
-
Jared Investments CC, a sole trader, recorded the following transactions during the financial year ending December 2021. 1. Received a cheque from Ben King N$ 1 755 and deduct 2% cash discount. 2....
-
Why is scope definition important?
-
Who leads an Agile project team? Might this change throughout the project?
-
Another term for activity on node, the most commonly used technique for constructing a schedule model, is: a. precedence diagramming method (PDM) b. arrow diagramming method (ADM) c. activity on...
-
What does RAM stand for, and what is its purpose?
-
What is used to create an Agile project schedule?
-
a) prepare the correct bank reconciliation statement as at 31 July 2020. (Assume that the balances in the incorrect bank reconciliation statement are correct.) (4) b) prepare the bank account in the...
-
The population of Detroit, Michigan, decreased from 1,027,974 in 1990 to 688,701 in 2013 (Source: U.S. Census Bureau). Find the average rate of change in the population of Detroit, Michigan, over the...
-
Hong Kongs unequalled bridging role linking European firms with China presented itself as an ideal opportunity for former corporate banker Jennifer Chan. After founding Sinova Management Consultancy...
-
The Tainan Glass Manufacturing Company of Taiwan (the name of the company is disguised) produces large glass sheets for windows, display cases, and industrial uses. It is one of two manufacturers in...
-
What is meant by a change agent in export marketing? Give examples of each type of change agent.
-
The statement of cash flows for Cash4Cars Ltd follows. Ignore GST. Required (a) Explain the information that would be presented in Note 29 of Cash4Cars Ltds financial statements. (b) Explain the...
-
Below are the comparative statements of financial position of Lithium Ltd. Additional information 1. Income statement details were: sales revenue $750 000; cost of sales $603 000; expenses $116 360...
-
Karen Broderick commenced business on 1 July 2018. On 30 June 2019, she found that she had written off debts amounting to $1875. In addition, she found it necessary to create an allowance for...
Study smarter with the SolutionInn App