Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Database Design And Implementation

Authors: Edward Sciore

2nd Edition

3030338355, 978-3030338350

More Books

Students also viewed these Databases questions