Question: Proiect 2: Design A Simple Calculator DFA machine for a simple calculator, where TI is used for only one operation each time (eg 13.1+4.2]x 5
Proiect 2: Design A Simple Calculator DFA machine for a simple calculator, where "TI is used for only one operation each time (eg 13.1+4.2]x 5 Steps of the project: (1) Design a regular expression r for real number expression. A real number can be negative or positive (e.g -2.5 and 0.52). A real number expression is an expression of real numbers four arithmetic operations (e.g. II-3.1+4.2]x-5y6]+7.3-0.54). 2) Design a DFA for accepting the regular language L). You can first design a NFA and then convert it to a DFA. (3) Design a regular grammar to generate the regular language LC). (4) Write a program (using C# or Java) to implement the DFA, ie, accept the language L(r). The output is "accepted" or "rejected Requirement for the project report: . A detailed description/instruction for how to use the calculator. .Explanation for (1), (2), 3) .Code and test result. The program must have a test interface for a user to give an input (a string for real number expression) and get an output (accept or reject) Team work (workload of each team member and collaboration in the team). Power point slides for presentation
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
