Question
C# .net Question Write a Console App (.NET Framework) that: Makes use of an interface called IEncryptable that contains method signatures for Encrypt( ) and
C# .net Question
Write a Console App (.NET Framework) that:
Makes use of an interface called IEncryptable that contains method signatures for Encrypt( ) and Decrypt( ) (save as IEncryptable.cs)
Makes use of an interface called ISearchable that contains a method signature for Search( ) (save as ISearchable.cs)
Makes use of an abstract class called Media which represents one single media object (save as Media.cs)
Creates additional classes derived from Media:
Book (represents one book and has two string properties, Author and Summary)
Movie (represents one movie and has two string properties, Director and Summary)
Song (represents one song and has two string properties, Album and Artist)
The main class (Lab3A) should have the following features:A method called ReadData( ) that will read the Data.txt file and store up to 100 searchable media objects into an array
Examine the data file structure to see how the different media information has been formatted and stored
The data file will have the Summary information for both Books and Movies encrypted using a simple Rot13 algorithm (see Wikipedia)
Include exception handling for the file I/O
Prompts the user via a menu to display your media objects in a variety of ways:
List All Books - a neat list of all Book objects (no Summary displayed)
List All Movies - a neat list of all Movie objects (no Summary displayed)
List All Songs - a neat list of all Song objects
List All Media - a neat list of all derived Media objects (no Summary displayed)
Search All Media by Title - a neat list of all objects with the search key anywhere in the Title (display decrypted Summary where available)
Exit Program
Continues to prompt until the user selects the exit option
Error checking for user input
The Main( ) method should be highly modularized
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started