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
REY [17]
3 years ago
14

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= , V|E
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.
2. Using the Nullable values that you calculated in part 1, and using the FIRST sets that you calculated in part 2, determine the FOLLOW sets for all non-terminals, i.e. LHS of the rules. Please note, your answer includes all FOLLOW relations in addition to the resulting sets.
Engineering
1 answer:
Aliun [14]3 years ago
7 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

Explanation:

You might be interested in
the AADT for a section of suburban freeway is 150000 veh/day. Assuming this is an urban radial facility, what range of direction
igomit [66]

Answer:

design hour volumes will be 4000 to 6000

Explanation:

given data

AADT  = 150000 veh/day

solution

we get here design hour volumes that is express as

design hour volumes  = AADT × k × D    ..............1

here k is factor and its  range is 8 to 12 % for urban

and D is directional distribution i.e traffic equal divided by the direction

so here design hour volumes will be 4000 to 6000

7 0
3 years ago
Find the total present worth of a series of cash flows with an annual interest rate of 2% per year. Round your answer to the nea
prisoha [69]

The total present worth is $19,783.01

The present worth of a series of cash flow is the value of the cash flows in year 0 (today)

Cash flow in year 0 = 5330

Cash flow in year 1 = 0

Cash flow in year 2 = 0

Cash flow in year 3 = 13075 / (1.02)^3 = 12,320.86

Cash flow in year 4 = 2308 / (1.02)^4 = 2,132.24

Present worth = $19,783.01

A similar question was solved here: brainly.com/question/9641711?referrer=searchResults

5 0
3 years ago
Which of the eight diagnostic steps for locating an engine performance problem is performed first?
Kay [80]

Answer:

D. Perform a thorough visual inspection.

4 0
3 years ago
If they opened up the International Space Station to tourism, would you go? Why? answer in 2 sentences
Arlecino [84]
Personally, I would go to the space station. The space station has extreme different levels of technology and abilities, plus who doesn’t want to go to space.
6 0
3 years ago
Read 2 more answers
What type of spring is mounted on a mcpherson strut suspension system?
AysviL [449]

Answer:

Coil Spring

Explanation:

6 0
2 years ago
Other questions:
  • A 15 cm × 15 cm circuit board dissipating 20 W of power uniformly is cooled by air, which approached the circuit board at 20C w
    11·1 answer
  • 6. Staples are the most common item used to secure and support cables in residential wiring.​
    14·1 answer
  • g (d) Usually, in the case of two finite-duration signals like in parts (a) and (b), the convolution integralmust be evaluated i
    7·1 answer
  • An MRI technician moves his hand from a region of very low magnetic field strength into an MRI scanner’s 2.00 T field with his f
    5·1 answer
  • An operating gear box (transmission) has 350 hp at its input shaft while 250. hp are delivered to the output shaft. The gear box
    10·1 answer
  • A reciprocating engine of 750mm stroke runs at 240 rpm. If the length of the connecting rod is 1500mm find the piston speed and
    9·1 answer
  • Respond with TRUE if the symbol of the valve shown below is
    10·1 answer
  • Which option identifies the requirement standard NOT met in the following scenario?
    13·1 answer
  • A steam power plant with a power output of 230 MW consumes coal at a rate of 60 tons/h. If the heating value of the coal is 30,0
    5·1 answer
  • A logic circuit with 3 gates and 2 inputs. The circuit will be read from the final output to the inputs.
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!