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 heat engine operates between a source at 477°C and a sink at 27°C. If heat is supplied to the heat engine at a steady rate of
lara [203]

Answer:

T_C = 27+273.15 = 300.15 K

T_H = 477+273.15 = 750.15 K

And replacing in the Carnot efficiency we got:

e= 1- \frac{300.15}{750.15}= 0.59988 = 59.98 \%

W_{max}= e* Q_H = 0.59988 * 65000 \frac{KJ}{min}= 38992.2 \frac{KJ}{min}

Explanation:

For this case we can use the fact that the maximum thermal efficiency for a heat engine between two temperatures are given by the Carnot efficiency:

e = 1 -frac{T_C}{T_H}

We have on this case after convert the temperatures in kelvin this:

T_C = 27+273.15 = 300.15 K

T_H = 477+273.15 = 750.15 K

And replacing in the Carnot efficiency we got:

e= 1- \frac{300.15}{750.15}= 0.59988 = 59.98 \%

And the maximum power output on this case would be defined as:

W_{max}= e* Q_H = 0.59988 * 65000 \frac{KJ}{min}= 38992.2 \frac{KJ}{min}

Where Q_H represent the heat associated to the deposit with higher temperature.

4 0
3 years ago
The wet density of a sand was found to be 1.9 Mg/m3 and the field water content was 10%. In the laboratory, the density of solid
Nookie1986 [14]

Answer:

a) 44.4%

b) 72 mm

Explanation:

See attached pictures.

3 0
3 years ago
How should employees talk to clients)
s344n2d4d5 [400]

Answer:

Explanation:

Respectfully and calmly

3 0
3 years ago
Which one of these is not a successful budgeting strategy
Amiraneli [1.4K]

Answer:

I can't tell you that ANSWER because I need to see the answers they gave you to circle or something

6 0
3 years ago
Read 2 more answers
How do information systems support the activities in a supply chain?
Degger [83]

Answer:

the no. of activities supply in a cahin like in the figuration wise they supply the chain

6 0
2 years ago
Other questions:
  • Ayuda porfavor es para una tarea de mi capacitación de desarrollo microempresarial
    14·1 answer
  • Which of the following is the correct definition of mechanical energy?
    9·2 answers
  • Write down a transfer function of a stable system for which pure proportional feedback could drive the system unstable.
    11·1 answer
  • When the vessel and its contents are warmed to 100 °C, Q decomposes into its constituent elements. What is the total pressure, a
    11·1 answer
  • Determine the average and rms values for the function, y(t)=25+10sino it over the time periods (a) 0 to 0.1 sec and (b) 0 to 1/3
    9·1 answer
  • An analog baseband audio signal with a bandwidth of 4kHz is transmitted through a transmission channel with additive white noise
    14·1 answer
  • (a) The lattice constant of GaAs is 5.65 Å. Determine the number of Ga atoms andAs atoms per cm 3 .
    15·1 answer
  • With a brief description, What are the 14 principles of management by fayol.​
    10·1 answer
  • Which technical planning document defines support tasks?
    7·1 answer
  • Oil system cleaning products should not use solvents problem
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!