Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

help needed for C# Projcet. Working with Files Object Serialization/Deserialization For this project take Customer Class from Project 06 and create a Windows Console app

help needed for C# Projcet.

Working with Files Object Serialization/Deserialization

For this project take Customer Class from Project 06 and create a Windows Console app that will have the following choices:

1) Add customers

2) View all customer files in directory

3) Open a customer file to see the customers

4) Delete all customer files

5) Exit

When the user chooses 1 you will allow them to add as many customers until they choose not to add another customer. So after each customer is added you will ask them if theyd like to add another (y/n). If they choose y then let them add another. If they choose n then serialize the objects into a new file, save the file, and exit back to the main menu. If they choose anything else then tell them that they have made an invalid choice.

For option 2 you will show them all of the files in the directory.

For option 3 you will show them the files in the directory and ask them which they would like to choose (by number 1,2,3.). When they choose that number open the corresponding file deserializing the customer objects in the file and showing the output in a neatly formatted way. Ask them to press any key and return them to the main menu.

For 4 you will delete all of the customer files in the directory.

5 will exit the program.

Each file can contain at least 1 customer to as many as the user would like to enter. You can use one of the following formats for storing the serialized customer objects: XML, JSON, or Binary. (Please write a comment Line and provide the information which format you are using)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 33rd International Conference Dexa 2022 Vienna Austria August 22 24 2022 Proceedings Part 1 Lncs 13426

Authors: Christine Strauss ,Alfredo Cuzzocrea ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

3031124227, 978-3031124228

More Books

Students also viewed these Databases questions