Design a machine selling three types of drinks

Assignment Help Theory of Computation
Reference no: EM131458195

Assignment: Introduction to Theory of Computing

Course Project : Design An Automatic Selling Machine

Problem: Design a machine selling three types of drinks dl, d2, d3 and two types of stacks sl, s2. The buyers can use three types of coins cl, c2, c3. The number of each drink or snack that a buyer can buy once from the machine is nl, n2. Suppose that in the machine there are places for inserting coins, selecting the type of the drinks or snacks, and picking the number of the drink or stack that the buy selected. At the end the buyer has to push a button S to start the buying process. A buyer has to follow the order you designed when he/she buys drinks or snacks, e.g., first insert coins, then select the type of drinks or snacks, then pick the number of the drink or snack that the buyer selected, and finally push the button S to start the process; or he/she can repeat the same process before push the button S. Design the machine with the following stages:

(1) Suppose that X = {cl,c2,c3,s1,s2,d1,d2,d3,n1,n2,S} . Design the regular expression r such that L(r) is the language which contains the strings that buyers enter the machine.

(2) Design a NFA which accept the language L(r) in (1).

(3) Design a regular grammar to generate the language equivalent to L(r) in (1)

(4) Convert the NFA to DFA

(5) Implement the DFA in (4) use C# .

Requirement for the project:

- The report contains: (i) the requirements of the machine, (ii) detailed explanation for each of (1), (2), (3), (4), (iii) Code for (5), (iv) testing page which shows that the machine accepts the strings that belong to L(r) and reject the strings which don't belong to L(r) .

- Give a power point presentation.

Reference no: EM131458195

Questions Cloud

Identify possible risks constraints and assumptions : Identify possible risks, constraints, and assumptions. Describe the relationship and integration between systems and infrastructure.
Addressing all of the legal issues : Prepare a 300 to 500 word essay (Times New Roman/12 point font) addressing all of the legal issues and how you might advise the client.
Interest calculation methods : A Finance company calculates the value of the note today to be $3825. Find X under each of following interest calculation methods.
Who are the stakeholders at this event : 1. Who are the stakeholders at this event? 2. What are their respective goals for this meeting?
Design a machine selling three types of drinks : Design a machine selling three types of drinks dl, d2, d3 and two types of stacks sl, s2. The buyers can use three types of coins cl, c2, c3.
Interest rates and arbitrage : The treasurer of a major U.S. firm has $30 million to invest for three months. The interest rate in the United States is .31 percent per month.
New heritage doll company : Compare the business cases for each of the projects under consideration by Emily Harris. Are they compatible with New Heritage’s strategy? Which do you regard a
What is vega hedging : Describe some conceptual problems with this once-popular practice.
Calculate the possible effective rates of interest : Mark invests 1000 dollars. Two years later, he receives a payment from the investment of 2320 dollars. What are the possible effective rates of interest

Reviews

Write a Review

Theory of Computation Questions & Answers

  Finite-state machine design

Create a finite-state machine design to turn your FPGA development board into a simple programmable music box.

  Redundant sequence identi cation

Redundant sequence identi cation

  Compute a shortest superstring

Dynamic programming algorithm to compute a shortest superstring.

  Propositional and predicate logic

Write down a structural induction principle for the PlayTree free type

  Design a syntactic analyzer

Design a syntactic analyzer for the language specified by the grammar

  Design unambiguous grammar to parse expressions

Write a program would read two numbers and then print all numbers between the first and the second, inclusive. Design unambiguous grammar to parse expressions

  Consider a logic function with three outputs

Consider a logic function with three outputs,  A ,  B , and  C , and three inputs,  D ,  E , and  F . The function is defined as follows:  A  is true if at least one input is true,  B  is true

  Considering a single programmed operating system

Considering a single programmed operating system, what is the minimal total time required to complete executions of the two processes? You should explain your answer with a diagram.

  How to construct an nfa

Give a construction that assumes you are given a DFA for L and show how to construct an NFA (with or without ε-moves) to recognize sort(L).

  Equivalence classes to construct minimal dfa for language

How many equivalence classes does this relation have and what are they? Use these equivalence classes to construct the minimal DFA for the language.

  Impact of moore-s law on data center costs

Discuss the impact of Moore's law on data center costs on such things as servers and communications equipment. List at least 3 steps or recommendations your data center can take to offset some or all of the effect of Moore's law.

  Problem encountered in statements in predicate logic

How the problem would be encountered in attempting to represent the following statements in Predicate logic. it should be possible to: John only likes to see French movies.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd