subject
Engineering, 10.03.2020 08:57 nxusasmangaliso7596

Write the syntax definitions of the following objects:

(a) Natural number (1, 2, 3, ...)
(b) Unsigned integer (0, 1, 2, 3, ...)
(c) Integer (..., -2, -1,0, 1, 2, ...)
(d) Odd number (..., -3, -1, 1, 3, ...)
(e) Even number (..., -4, -2,0, 2, 4, ...)
(f) Integer divisible by 5 (..., -10, -5,0, 5, 10, ...)

Solve each problem from (a) to (f) using BNF, EBNF, syntax diagrams, and the parenthetic notation. At the end compare all solutions and write what is in your opinion the most suitable metalanguage for solving this type of problems.

ansver
Answers: 1

Another question on Engineering

question
Engineering, 04.07.2019 18:10
Fluids at rest possess no flow energy. a)- true b)- false
Answers: 3
question
Engineering, 04.07.2019 18:10
Ajournal bearing has a journal diameter of 3.250 in with a unilateral tolerance of 20.003 in. the bushing bore has a diameter of 3.256 in and a unilateral tolerance of 0.004 in. the bushing is 2.8 in long and supports a 700-lbf load. the journal speed is 900 rev/min. find the minimum oil film thickness and the maximum film pressure for both sae 20 and sae 20w-30 lubricants, for the tightest assembly if the operating film temperature is 160°f. a computer code is appropriate for solving this problem.
Answers: 3
question
Engineering, 04.07.2019 18:10
Which of the following refers to refers to how well the control system responds to sudden changes in the system. a)-transient regulation b)- distributed regulation c)-constant regulation d)-steady-state regulation
Answers: 1
question
Engineering, 04.07.2019 18:20
Derive the correction factor formula for conical nozzle i=-(1+ cosa) and calculate the nozzle angle correction factor for a nozzle whose divergence hal-fangle is 13 (hint: assume that all the mass flow originates at the apex of the cone.
Answers: 3
You know the right answer?
Write the syntax definitions of the following objects:

(a) Natural number (1, 2, 3, ......
Questions
question
Computers and Technology, 18.01.2021 19:00
Questions on the website: 13722362