Question: IN Basic C# - C-Sharp Problem #2: Redacted Files Create a method that will accept a String as an argument and then change it to

IN Basic C# - C-Sharp

IN Basic C# - C-Sharp Problem #2: Redacted Files Create a method

Problem #2: Redacted Files Create a method that will accept a String as an argument and then change it to a redacted file that is much harder to read. In our version, we will be changing out every vowel In the main prompt the user for a string to convert. You should validate that this is not left blank. Then send this string in to a custom method you will create. Once it is redacted, return this text string to the main where you will output both the original and redacted strings. To redact the text string you change each vowel to a dash, so you must perform the following character replacements: ea- Here are some examples bunny is b-nn- telephone is t-l-ph-n- code is c-d- You cannot use the Replace method to solve this problem; instead you must research other string methods that can help you accomplish this task. To help you along your way, you might want to check out the.ToCharArray method to start with. Hint-You should create a loop that looks at each individual character in the text string to see if it matches one of the encrypted letters. If it does, then change it to the correct letter .User Input (Prompt In Main Method, Use As An Argument) Text string to redact The redacted string with dash in place of all vowels "The original string of X redacted is Y." o . Return Value From Custom Function To Main Method: o Result to print to the console in the Main Method . Data Sets To Test o String 1- "Strings are fun" Results- "The original string of Strings are fun redacted is Str-ngs -re f-n." String 2- "Can you read this?" o Results- "The original string of Can you read this? redacted is C-ny-r-d th-s?."Now try an encrypted string of your own. Put all 3 tests in a multi-lined comment at the end of your code o

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!