Question: C sharp: The app should read as many strings as the user wants, but at least one string. The app should make sure that the

C sharp: The app should read as many strings as the user wants, but at least one string.
The app should make sure that the user enters at least one string. Otherwise, it
should display a proper error message.
The user should be able to end the program by entering #STOP# as a special
flag.
The special flag #STOP# should NOT be added to the list of entered strings.
The app should store the entered strings in a proper data structure/collection.
The app should then reverse the list of entered strings.
The app should then save the entered strings to a text file named
entered_strings.txt, and save the list of reversed strings to another text file
named reversed_strings.txt.
The app should read from the entered_strings.txt file and print the strings in the
same order entered by the user.
The app should also search the entered strings for the target string Holiday and
if it finds a match, it should display the target string and the message : Found a
match!. The search logic should NOT be case sensitive.
Page 4 of 5
The app should read from the reversed_strings.txt file and print the strings in
the reversed order. The strings should be printed on the same line separated by
a comma and one space after the comma.
The app should use proper exception handling (using try, catch, and finally
blocks) when it writes to output files and reads from input files.

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!