Implement your own version of the N- child using C# with mentioned functionalities : insert, delete, contains, get elements by value, get elements by level, iterator breadth first, iterator depth first, traverse/print breadth first, traverse/print depth first.
Use of similar data structures already present in the language/framework is not allowed.
Implement your own version of the priority queue using C# with mentioned functionalities: enqueue, dequeue, peek, contains , reverse, size, iterator, traverse/print.
Use of similar data structures already present in the language/framework is not allowed.
Implement your own version of the queue using C# with mentioned functionalities: push, pop, peek, contains, reverse, size, iterator, traverse/print.
Use of similar data structures already present in the language/framework is not allowed.
Implement your own version of the stack data using C# with mentioned functionalities: push, pop, peek,contains, reverse, size, iterator, traverse/print.
Use of similar data structures already present in the language/framework is not allowed.
Implement your own version of the linked list using C# with mentioned functionalities: insert, insert at position, delete, delete at position, center, reverse, size, iterator, traverse/print.
Use of similar data structures already present in the language/framework is not allowed.
Lab 13:-
Using Serialization to persist business data
Q5. Create the array of suppliers and store this collection of suppliers in JSON object using JSON Serialization
Q6. Create a Student class with fields RollNo, Name, City, Degree. Implement the ISerializable interface in Student class. And perform binary serialization on the Student Object.
lab-13:-
Using Serialization to persist business data
Q3. There is a Change request from the client. Instead of serializing in Binary format, client wants to serialize it using SOAP format. Modify the above program to SOAP serialize the details.
Q4. You have already created the Supplier Class in Lab 3. You need to store the supplied details in XML format. Perform the XML serialization to store the supplied details in XML.
lab-13:-
Using Serialization to persist business data
Q1. You have already created the Contact class. You need to store List of Contacts in binary format on disk. Perform Binary Serialization to store the List. To Do: Write the Program to Accept the data for multiple contacts, store them in a List. Serialize the List using Binary formatter.
Q2. The Client has suggest an Enhancement to the above code. You need to write the code to Deserialize the data from the Binary file, and print the details.
File Copy operation. You need to accept source and destination file names. data should be copied from source file to destination file. Handle all exceptions that might occur during file copy operation.
Extended Assignment
An institute have decided to automate their batch details operations. Application is to be developed
in proper directory structure to be maintained to store files.
EX:-
Academy:
Chennai: Chennai.txt
Bangalore: Bangalore.txt
Mumbai: Mumbai.txt
Pune: Pune.txt
Operations:
Create a menu based application to store batch details.
• First option in menu should allow user to create directory structure and files (if not exists) in c drive as shown in above figure.
• Second option should accept batch details from user. Based on location given by user append batch details in respective files.
• Third menu option allows user to create a backup copy of Academy folder in D Drive
• Fourth option should allow user to view details of text files as mentioned above.
Write a Code to Read and Display the contents of a text file. Accept the name of the file from the user. Handle all the exceptions that might occur during reading.