Create data objects to store the data to disk we chose this


Project - Instructions

Now that you are well on your way to creating a functioning application with the ability to accept data via input forms and display the data in report windows, it's time to start implementing some functionality that will allow your application to save the data permanently to disk. All of the objects you are creating will disappear once the application closes unless you write the data to a permanent location.

Although it's not necessary to create data objects to store the data to disk, we chose this method in order to simulate a data access layer in our application. Our data model class is where we store all of our objects. We now want to be able to write out all the data from the data model, into a permanent file or files.

For this assignment, you will implement output methods which will write the contents of the lists in the data container, to permanent memory. For convenience, you can add these methods to the data model class or you can create a utility class.

As you can see from the class notes , there are many ways to implement data persistence. We are looking at just a few of them. For this assignment I am going to let you choose which format to save the data.

I am offering you a lot of flexibility in this assignment. You can choose which method or methods you want to implement to permanently store the data. If you want to try all of them, you are welcome to do that.

Just make sure that at least one of your methods works correctly to store all the data. Keep in mind that how you store the data will influence your read methods that you will be implementing next week.

Also remember that some of your objects contain embedded array lists. Remember to write out the data from these along with all the other data in the object.

NOTES:

Execute the output method upon the application closing event by implementing a file save menu option .

The sample project attached here shows how to persist the data using all three covered formats, for the classroom object.

You will have 2 weeks to finish this assignment. Please don't delay in getting started. Although not as challenging as event handling, it is somewhat labor intensive, depending on the format you choose. And as always, I will be here to help you if you get stuck.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Create data objects to store the data to disk we chose this
Reference No:- TGS02903639

Expected delivery within 24 Hours