Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

pleass write java code for expression below from the scratch paper. i only need java code. code should only show accept or reject when completed.

pleass write java code for expression below from the scratch paper. i only need java code.
code should only show accept or reject when completed.
image text in transcribed
image text in transcribed
Course Project 2: Design A Simple Calculator Problem: Design the DFA machine for a simple calculator, where = (0, 1,2 3, 4, 5, 6, 7, 8, 9, .,,.O[,]},"[rs used for only one operation each time (e.g. [3.14.2] embedded [...]] is not allowed. Steps of the project (1) Design a regular expression r for real number expression. A real number can be negative or 4 5 67 solu2@48 positive (e.g.. -2.5 and 0.52). A real number expression is an expression of real numbers connected by four arithmetic operations +.-x,,/ and priority [ (2) Design a DFA for accepting the regular language L(c). You can first design a NFA and then convert it to a DFA (3) Design a regular grammar to generate the regular language LG) (4) Implement the DFA using C# or Java (ie, accept the strings in language r) h mp is a string and output is "accepted" or "rejected" The project report must contain the following components: . User instructions: Stepwise instructions that tell the customers s how to use the calculator. Detailed explanation for (1), (2), (3). Implementation: code and test result. Input: a string of real number expression inputted from key board; Output: accept or reject. Team work (workload of each team member and collaboration in the team).o14 Power point slides for presentation. . Op

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

Step: 3

blur-text-image

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

More Books

Students also viewed these Databases questions