Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program using C# that decodes a secret messages read from a text file using an alphabetic shift. So, for example, a shift might

Write a program using C# that decodes a secret messages read from a text file using an "alphabetic shift." So, for example, a shift might appear as:

COMPUTER with a shift of 2 would be EQORWVGT

ORIGINAL: ABCDE...XYZ

SHIFTED: CDEFG...ZAB

You must utilize stepwise refinement to break this program into appropriate and lesscomplicated components, say:

1.) Read the encoded message from the attached MessageIn.txt file,

2.) Count the instances of each character in the file,

3.) The most common character in the message should be an "E". Use this information to calculate the amount of the shift,

4.) Print out the decoded message.

MessageIn.txt

HVWGWGHVSPSGHQCADIHSFSLSFQWGSWVOJSSJSFSLDSFWSBQSR

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

Students also viewed these Databases questions

Question

=+ What has to stop, and what needs to be done differently?

Answered: 1 week ago

Question

=+derived from the assignment will balance the costs?

Answered: 1 week ago

Question

=+6 Who is the peer of the IA ?

Answered: 1 week ago