Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Advances In Databases And Information Systems 25th European Conference Adbis 2021 Tartu Estonia August 24 26 2021 Proceedings Lncs 12843

Authors: Ladjel Bellatreche ,Marlon Dumas ,Panagiotis Karras ,Raimundas Matulevicius

1st Edition

3030824713, 978-3030824716

More Books

Students also viewed these Databases questions

Question

Connect with your audience

Answered: 1 week ago

Question

Understand why empowerment is so important in many frontline jobs.

Answered: 1 week ago