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
As described in "A Note About Bacterial Reproduction -- and the "Culture Bias,"" the organism Epulopisciumdoes not divide by bin
zloy xaker [14]

Answer:

A

Explanation:

The best method that will yield significantly more accurate result is to use spectrophotometer to read the turbidity of the sample and increase in turbidity is associated with increase biomass.

5 0
3 years ago
La base de los tema relacionados a las ciencia de las ingeniería es?
Yanka [14]

Answer:

La ciencia y la ingeniería conciben el mundo como comprensible, con reglas que gobiernan su funcionamiento y que a través de un estudio cuidadoso y sistemático se puede evidenciar mediante patrones consistentes que permitan la oportunidad de examinar las características fundamentales que mejor describen los fenómenos.

Explanation:

5 0
3 years ago
What is the following passage saying about the relationship between sustainability and responsibility?
7nadin3 [17]

What the given passage is saying about the relationship between sustainability and responsibility is that;

C: We should only consider products or services to be green if their broad impact can be considered so.

<h3>Sustainability</h3>

From the passage, we see a write up questioning if the things we term to be green are truly green.

Now, from the passage, we see that a biofuel that is considered to be green is not really green if we consider that if it requires massive overproduction, it could wreck the water table.

Also, he says that if the production is local but also wasteful then it is not green.

Thus, we can see clearly that before we term a product or service as green, we should also consider their broad impact on the environment.

Read more about sustainability at; brainly.com/question/14154063

7 0
2 years ago
Why might construction crews want to install pipes before the foundation is poured
Crazy boy [7]

The answer is choice C

Explanation:

As during construction ,the site is cleared for all debris before laying out the foundation. Even the sewer lines are dug out .

So it will be useful for the construction crews to  connect the pipes to the sewer lines before the foundation is poured.

But usually the steps take in construction activity is:- first the site is cleared for the foundation to be poured  and once the foundation wall is set , then all utilities , including plumbing and electrical activities are done.,

After this process is over, the city inspector comes to check whether the foundation has been laid down as per the code of construction.

Only after that the rest of the construction activity follows through.

3 0
4 years ago
A well is located in a 20.1-m thick confined aquifer with a conductivity of 14.9 m/day and a storativity of 0.0051. If the well
ahrayia [7]

Answer:

S = 5.7209 M

Explanation:

Given data:

B = 20.1 m

conductivity ( K ) = 14.9 m/day

Storativity  ( s ) = 0.0051

1 gpm = 5.451 m^3/day

calculate the Transmissibility ( T ) = K * B

                                                       = 14.9 * 20.1 = 299.5  m^2/day

Note :

t = 1

U = ( r^2* S ) / (4*T*<em> t </em>)

  = ( 7^2 * 0.0051 ) / ( 4 * 299.5 * 1 ) = 2.0859 * 10^-4

Applying the thesis method

W(u) = -0.5772 - In(U)

       = 7.9

next we calculate the pumping rate from well ( Q ) in m^3/day

= 500 * 5.451 m^3 /day

= 2725.5 m^3 /day

Finally calculate the drawdown at a distance of 7.0 m form the well after 1 day of pumping

S = \frac{Q}{4\pi T} * W (u)

 where : Q = 2725.5

               T = 299.5

               W(u)  = 7.9

substitute the given values into equation above

S = 5.7209 M

4 0
3 years ago
Other questions:
  • The manufacturer of a 1.5 V D flashlight battery says that the battery will deliver 9 {\rm mA} for 37 continuous hours. During t
    10·1 answer
  • What's mutual inductance​
    8·1 answer
  • Sadadasdasdasdasdadaaasd1
    14·1 answer
  • The controlled variable in a closed-loop system is the direction of a robot arm. Initially, it is at 50o; then it is commanded t
    12·1 answer
  • Make a sketch of a simple mechanically expanded brake and indicate the forces ​ ​ acting on the leading shoe when the brake is a
    10·1 answer
  • Test if a number grade is an A (greater than or equal to 90). If so, print "Great!". Hint: Grades may be decimals. Sample Run En
    15·1 answer
  • 2. When performing an alignment, what action should be taken immediately after putting a vehicle on the rack?
    15·1 answer
  • Crank OA rotates with uniform angular velocity 0  4 rad/s along counterclockwise. Take OA= r= 0.5
    11·1 answer
  • What is the purpose of placing a large electrolytic capacitor in the output side of a power supply
    11·1 answer
  • Technician A says reducing spark advance can cause spark knock. Technician B says excessive carbon deposits can cause spark knoc
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!