Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Since this needs the first letter of my last name, its F COSC 385 - Theory of Formal Languages, Grammars, and Automata Spring 2023 Project
Since this needs the first letter of my last name, its F
COSC 385 - Theory of Formal Languages, Grammars, and Automata Spring 2023 Project 2 List of Problems Write in Python: A function to simulate a deterministic finite automaton (DFA) that (only) recognizes the language ???, where ??? is the first letter of your family name. A program to input/read input data, call/execute function, output/print result/output data. The function must be based on the theory of finite automata! The function may print/report only errors. The function(s) and program must be into two separate Python files. The function(s) and program must be designed from the scratches. Language A Binary numbers Example: A={00000000,0101,111111, etc. } Language B Even binary numbers Example: B={00000000,0100,111110, etc. } Language C Odd binary numbers Example: C={00000001,0101,111111, etc. } Language D Even length binary numbers Example: D={00000000,0100,111110, etc. } Language E Odd length binary numbers Example: E={0000001,101,11111, etc. } Language F Octal numbers Example: F={01234567,0101,777, etc. } Language G Hexadecimal numbers Example: G={ABCD,1A2B,007, etc. } Language H Unsigned integer numbers Example: H={123,007,4567890, etc. } Language I Unsigned even integer numbers Example: I={124,008,4567890, etc. } Language J Unsigned odd integer numbers Example: J={123,007,4567891, etc. } Language K Even length unsigned integer numbers Example: K={012345,67,8910, etc. } Odd length unsigned integer numbers Example L={12345,6,891, etc. } Language M Signed integer numbers Example: M={+123,123, etc. } Language N Unsigned and signed integer numbers Example: N={123,123,+123, etc. } Language 0 Unsigned real numbers Example: O={.12345,1.2345,12345.,12345E0,.12345E10,1.2345e+1, etc. } Language P Signed real numbers Example: P={+.12345,1.2345,12345.,+12345e0,.12345E10,+1.2345e+1, etc. } Language Q Signed and unsigned real numbers Example: Q={.12345,1.2345,12345.,+12345E0,.12345E10,1.2345E+1, etc. } Language R Unsigned and/or signed integer and/or real numbers Example: R={12,345,6.78E+9, etc. } Language S Identifiers Example: S={x,x123, llike Morgan, etc. } Language T Some ' a 's some ' b 's. (Order of ' a 's and ' b 's are important.) Example: T= \{aaaa, aaaaaaaabbbb, bbbbbbbbbbbb, etc. } Language U Names of the most popular programming languages. Example: U = \{Java, C, C++, Python, C\#, PHP, Javascript, Ruby, R, MATLAB, SQL, PERL, HTML, Visual Basic, Objective-C, Scala, Lua, Fortran, Haskell, LISP, Prolog, Erlang, Ada, etc.\} Language V Key words of the Python 3 programming language. Example: V={False, None, True, and, as, assert, break, class, continue, def, del, elif, else, except, finally, for, from, global, etc. // For complete list of key words - see Python 3 documentation. Language W Names of the most popular Python IDE and Code editors. Example: W={ PyCharm, Spyder, PyDev, Idle, Wing, etc. } Language X Names of the most popular Python Computing Platforms. Example: X={ Windows, Linux. macOS, Command-line interface, HP-UX, OpenVMS, QNX, etc. }
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