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
The mass flow rate of the fluid remains constant in all steady flow process. a)- true b)- false
Answers: 1
question
Engineering, 04.07.2019 18:20
Ahe-xe mixture containing a 0.75 mole fraction of helium is used for cooling electronics in an avionics application. at a temperature of 300 k and atmospheric pressure, calculate the mass fraction of helium and the mass density, molar concentration and molecular weight of the mixture. if the cooling capacity is 10 l, what is the mass of the coolant?
Answers: 3
question
Engineering, 04.07.2019 18:20
An engine runs on the ideal diesel cycle. the cycle has a compression ratio of 20 and a cutoff ratio of 2. the highest temperature in the cycle is 1200 k. if the heat into the system is 300 kj/kg of working fluid and using variable specific heats determine the work produced per mass of working fluid
Answers: 3
question
Engineering, 04.07.2019 19:10
An external consultant recommends that a plant installs a bank of capacitors for power factor correction. this will reduce the peak electrical demand charges by an average of 93 kw every month. the plant current pays $13 per kw in peak demand charges. the capacitor bank will include 223 kw of fixed capacitors, and 183 of variable capacitors. the fixed capacitors cost $59 per kw, and the variable capacitors will cost $65 per kw. the consultant charges 21% of the equipment costs to install the capacitors. because this project will reduce the demand for the electric utility, they are prepared to provide a one-time rebate of $42 per kw of reduced demand. what is the simple payback period for this project (in years)?
Answers: 2
You know the right answer?
Write the syntax definitions of the following objects:

(a) Natural number (1, 2, 3, ......
Questions
question
Mathematics, 28.01.2020 05:31
question
Social Studies, 28.01.2020 05:31
Questions on the website: 13722367