Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Purpose: To model a DFA ( Deterministic Finite Automaton ) and use it to accept strings of the associated language. Input: The program should take
Purpose: To model a DFA Deterministic Finite Automaton and use it to accept strings of the
associated language.
Input: The program should take the DFA description from a text file that is specified as a
command line parameter. If this parameter is missing, the user should be prompted for the data
file. Strings to be tested for inclusion in the language should be entered interactively by the user.
Output: For each string being tested, the program should indicate whether or not the string is
accepted.
this is the sample we got provide Assume no spaces in input.
Alphabet must at least allow Please feel free to expand this.
States must at least allow letters, but you are welcome to expand this.
Transition functions may appear in any order in the input text file. End of the input file
indicates the end of transition functions.
You can team up with up to other students in class or do the project individually. Full
participation of each member in a team is expected.
The sample DFATest.txt file is given in folio to describe the DFA in Example of
the chapter slides, page It is a DFA that recognizes the regular language over
that contain the substring You can use this as your first sample test file. But you are
required to submit a different DFA and make sure that your own DFA input file fits
the format in the project description. all source code files
a sample DFA text file of your own
PowerPoint slides of your presentation that
gives an overall project description;
shows your own DFA sample file different from the DFA input sample from
me illustrate the state diagram of your DFA, and explain the regular language that
your DFA is supposed to accept;
includes screenshots of the execution results to show least one string to be accepted
and at least one string to be rejected.
You must have screenshots that demonstrate your program execution that is
based on the different DFA input than the sample. please make the code in java, javascript,or python,
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started