build a simple DFA

Anonymous
timer Asked: Nov 18th, 2016

Question description

You are required to build a simple DFA

·  Your DFA must be able to recognize a password with the following characteristics

1-  The length of the password ranges between 6 and 14 symbols

2-  The password must contain at least one digit, and must end with a special character (#, @, or &)

·  The alphabet of the DFA consists of English characters, digits 0 .. 9 and special characters #, @, &

In order to build the DFA, you must first initialize your transitions based on your own selected password. (You can use a 2-dimensional array for this purpose).

Then your DFA must recognize only the password you specified in the initialization part of the program.

Your DFA will be tested with different passwords. It must reject all wrong passwords, including the ones used with wrong alphabet.



Tutor Answer

(Top Tutor) Studypool Tutor
School: Boston College
Studypool has helped 1,244,100 students
flag Report DMCA
Similar Questions
Hot Questions
Related Tags
Study Guides

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors