1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
kifflom [539]
3 years ago
15

In C++ the declaration of floating point variables starts with the type name float or double, followed by the name of the variab

le, and terminates with a semicolon. It is possible to declare multiple variables separated by commas in one statement. The following statements present examples, float z; double z, w; The following partial grammar represents the specification for C++ style variable declaration. In this grammar, the letters z and w are terminals that represent two variable names. The non-terminal S is the start symbol. S=TV; V=CX X = , VIE T = float double C = z w 1 - Determine Nullable values for the LHS and RHS of all rules. Please note, your answer includes all Nullable functions for LHS and RHS, in addition to the resulting values. (25 points)

Engineering
1 answer:
zubka84 [21]3 years ago
4 0

Answer:

The given grammar is :

S = T V ;

V = C X

X = , V | ε

T = float | double

C = z | w

1.

Nullable variables are the variables which generate ε ( epsilon ) after one or more steps.

From the given grammar,

Nullable variable is X as it generates ε ( epsilon ) in the production rule : X -> ε.

No other variables generate variable X or ε.

So, only variable X is nullable.

2.

First of nullable variable X is First (X ) = , and ε (epsilon).

L.H.S.

The first of other varibles are :

First (S) = {float, double }

First (T) = {float, double }

First (V) = {z, w}

First (C) = {z, w}

R.H.S.

First (T V ; ) = {float, double }

First ( C X ) = {z, w}

First (, V) = ,

First ( ε ) = ε

First (float) = float

First (double) = double

First (z) = z

First (w) = w

3.

Follow of nullable variable X is Follow (V).

Follow (S) = $

Follow (T) = {z, w}

Follow (V) = ;

Follow (X) = Follow (V) = ;

Follow (C) = , and ;

Explanation:

You might be interested in
A specimen of 4340 Steel Tempered at 425 C is being tested using a single edge notched tension configuration. The estimated Y pa
r-ruslan [8.4K]

Answer:

length of starter crack = 1.056

Explanation:

given data

temperature = 425 C

yield strength = 60%

Y parameter = 2.5

solution  

we use here A 20 table so we get here value that is

Sy = 1360 MPa

Kic = 117.5 MPa \sqrt{m}

so length of starter crack  will be

a = \frac{1}{\pi } (\frac{Kic}{Y\times \sigma max})^2     .....................1

put here value and we will get

a =  \frac{1}{\pi } (\frac{117.5}{2.5\times 0.6 \times 1360})^2  

solve it we get

length of starter crack = 1.056

5 0
3 years ago
How do you solve this. I dont know how so I need steps if you dont mind
galben [10]

Explanation:

all I know is every number that have a bar on is equal to one

4 0
3 years ago
4. Lockout/tagout (LOTO) is a safety procedure that ensures dangerous machines are properly shut off and not started up again pr
klemol [59]

Answer:true

Explanation:

5 0
4 years ago
You and your design group are competing for a multidisciplinary concept project. Your firm is the lead group in the design profe
sasho [114]

Answer: the answer for the question is a

Explanation:

4 0
3 years ago
Ammonia enters an adiabatic compressor operating at steady state as saturated vapor at 300 kPa and exits at 1400 kPa, 140◦C. Kin
hammer [34]

Answer:

a. 149.74 KJ/KG

b. 97.9%

c. 0.81 kJ/kg K

Explanation:

8 0
4 years ago
Other questions:
  • Electric heater wires are installed in a solid wall having a thickness of 8 cm and k=2.5 W/m.°C. The right face is exposed to an
    5·2 answers
  • How can we prevent chemical hazards in labotary
    9·1 answer
  • Type the correct answer in the box. Spell all words correctly.
    6·1 answer
  • Consider two water tanks filled with water. The first tank is 8 m high and is stationary, while the second tank is 2 m high and
    12·2 answers
  • What change in the sound do you expect to hear when you increase the amplitude of
    14·1 answer
  • What Happens If A Sonic Boom Is Created?
    8·1 answer
  • Water enters the tubes of a cold plate at 70°F with an average velocity of 40 ft/min and leaves at 105°F. The diameter of the tu
    8·1 answer
  • The seers were of the opinion that_____ . *
    14·1 answer
  • What should I do in life?
    12·2 answers
  • You are about to perform PMCS on your M1114? What resource should you use for the procedures and instructions for performing PMC
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!