Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I would be really appreciated it if you can help me out with all the detail. Just don't copy and paste from another answer. This

I would be really appreciated it if you can help me out with all the detail. Just don't copy and paste from another answer.

image text in transcribed

This programming assignment is a user input validator. Acceptable input is zero or more characters from the alphabet of {a,b,+,,(),}.(Orthealphabetofyourchoicewhichincludestheelementaryregularexpression operators of {+,,()}, The program will allow the user to enter multiple lines of "words" from the console, each word will be delimited by a carriage return or a maximum of 1,000 characters. Blanks or tabs should be ignored. Following each word of input, the program will display the word along with an indication of whether the word consists of valid characters and which characters, if any, are invalid. The user will indicate the end of input by entering an empty word (a blank line). The following is an example run with the input in bold. Regular expression validator over the alphabet {a,b,+,,(), Enter regular expression: ab VALID: ab Enter regular expression: ab (ba) * VALID: ab(ba) * Enter regular expression: ab ( ba) X+ba ( bb INVALID: ab(ba)x+ba(bb Enter regular expression: )&0 \& $b(ba)x+ba(bb INVALID: ) \&a\# \$b (-ba) * X+ba(bb blank line Program terminated. Design and implement your program for future extensions, with a minimal amount of unessential complexity. This will permit the addition of expression processing functionality in the future assignments. Submit the solution in a convenient package which includes properly documented source code and an executable, if appropriate

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_2

Step: 3

blur-text-image_3

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

Practical Database Programming With Visual Basic.NET

Authors: Ying Bai

1st Edition

0521712351, 978-0521712354

More Books

Students also viewed these Databases questions

Question

what is a breadth - first search?

Answered: 1 week ago

Question

Types of Interpersonal Relationships?

Answered: 1 week ago

Question

Self-Disclosure and Interpersonal Relationships?

Answered: 1 week ago