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
5 pts
Softa [21]

Answer:

Helps to accurately calculate job costs

Explanation:

please mark me as brainliest

4 0
3 years ago
A current vehicle registration expires at _____ of the first owner listed on the registration form
wariber [46]

Answer:

Midnight on the birthday. Hope this helps!

3 0
3 years ago
What role does IT technology play in automobile manufacturing
grigory [225]

Answer:

find the distance prime

7 0
3 years ago
Describe the basic mechanism by which positive photolithography transfers a pattern, and comment on the chemical interactions of
ankoles [38]

Photo-lithography is the method of giving geometric shapes on a mask to the surface of a silicon wafer.

<u>Explanation:</u>

The fabrication of an integrated circuit (IC) requires a variety of physical and chemical processes conducted on a semiconductor (e.g., silicon) substrate. In common, the numerous methods used to create an IC fall into three divisions: film deposition, patterning, and semiconductor doping.

Films from both conductors (such as polysilicon, aluminum, and extended recently copper) and nonconductors (various forms of silicon dioxide, silicon nitride, and others) are utilized to combine and separate transistors and their parts.

Selective doping of different regions of silicon permits the conductivity of the silicon to be altered with the application of voltage. By building structures of these various parts millions of transistors can be assembled and wired together to form the complex circuitry of a modern microelectronic device.  

Fundamental to all of these methods is lithography, i.e., the development of three-dimensional relief images on the substrate for subsequent transfer of the model to the substrate.

6 0
3 years ago
Drag the tiles to the correct boxes to complete the pairs.
Jobisdone [24]

Answer:

Check image, right on PLATO

3 0
3 years ago
Other questions:
  • Ayuda porfavor es para una tarea de mi capacitación de desarrollo microempresarial
    14·1 answer
  • The hot and cold inlet temperatures to a concentric tube heat exchanger are Th,i = 200°C, Tc,i = 100°C, respectively. The outlet
    10·1 answer
  • Psychologist who uses behavioral approach to therapy would probably try which of the following
    13·2 answers
  • 2.11 Consider a 400 mm × 400 mm window in an aircraft. For a temperature difference of 90°C from the inner to the outer surface
    13·1 answer
  • A worker standing on a freshly mopped floor is
    7·1 answer
  • A structural component in the form of a wide plate is to be fabricated from a steel alloy that has a plane-strain fracture tough
    10·1 answer
  • At the inlet to the combustor of a supersonic combustion ramjet (or scramjet), the flow Mach number is supersonic. For a fuel-ai
    12·1 answer
  • Why do engineers (and others) use the design process?
    13·1 answer
  • No question but thx<br> reeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
    7·2 answers
  • Aqueous cleaners are ________ parts cleaning agents.
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!