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
Give five general principles involved in the process of sewage filtration?​
aleksandr82 [10.1K]

Answer:

Some general principles are given below in the explanation segment.

Explanation:

Sewage treatment seems to be a method to extract pollutants from untreated sewage, consisting primarily of domestic sewage including some solid wastes.

<u>The principles are given below:</u>

  • Unless the components throughout the flow stream become greater than the ports or even the gaps throughout the filter layer, those holes would be filled as either a result of economic detection.
  • The much more common element of filtration would be the use of gravity to extract a combination.
  • Broadcast interception or interference.  
  • Inertial influence.
  • Sieving seems to be an excellent method to distinguish particulates.

8 0
3 years ago
You installed a new 40 gallon water heater with a 54,000 BTUh burner. The underground water temperature coming into the house is
kipiarov [429]
14256000. Kanjiuijhgg
5 0
3 years ago
Read 2 more answers
Not sure which one....
Airida [17]
I think downwards as that's how most saw's work.
4 0
3 years ago
The seers were of the opinion that_____ . *
AURORKA [14]

Answer:

✔️a healthy mind resides in a healthy body.

Explanation:

The seers were of the opinion that "a healthy mind resides in a healthy body."

Just like the English translation of a famous quotation from Thales, pre-Socratic Greek philosopher puts it "a sound mind in a sound body"; which tries to demonstrate the close connections that exists in bodily well-being and one's ability to enjoy life.

The seers were actually of the opinion that a healthy mind resides in a healthy body. It implies that there is connection between the body and the mind. When the body catches an illness, the mind and other parts of the body are affected. When our minds are not healthy, it affects the effective functioning of the body.

So, a healthy mind will definitely be found in a healthy body.

4 0
3 years ago
1. Examine the following circuit. Find RT, I3, R1, R2, R3, V1, V2 and V3. Show all of your work clearly below.
Mkey [24]

Explanation:

Ohm's law is used here. V = IR, and variations. The voltage across all elements is the same in this parallel circuit. (V1 =V2 =V3)

The total supply current is the sum of the currents in each of the branches. (It = I1 +I2 +I3)

Rt = (8 V)/(8 A) = 1 Ω . . . . supply voltage divided by supply current

I3 = 8A -3A -4A = 1 A . . . . supply current not flowing through other branches

R1 = (8 V)/(3 A) = 8/3 Ω

R2 = (8 V)/(4 A) = 2 Ω

R3 = (8 V)/(I3) = (8 V)/(1 A) = 8 Ω

V1 = V2 = V3 = 8 V

6 0
3 years ago
Other questions:
  • Name two types of Transformers.
    6·1 answer
  • Pine Valley Furniture wants to use Internet systems to provide value to its customers and staff. There are many software technol
    5·1 answer
  • The state of plane strain on an element is:
    15·1 answer
  • A highway reconstruction project is being undertaken to reduce crash rates. The reconstruction involves a major realignment of t
    14·1 answer
  • Weight limit for a pallet
    15·2 answers
  • What is the scope of hazard review in a worksite analysis
    7·1 answer
  • 3
    6·1 answer
  • ) A flow is divided into two branches, with the pipe diameter and length the same for each branch. A 1/4-open gate valve is inst
    5·1 answer
  • Is there a project idea, or invention that would be good for<br> my class.
    6·2 answers
  • You set a sensor to transmit the wind speed on top of a mountain. Which of these languages are you most likely to have used?
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!