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
What should be your strongest tool be for gulding your ethical decisions making process
valkas [14]

Answer:

Recognize that there is a moral dilemma.

Determine the actor. ...

Gather the relevant facts. ...

Test for right versus wrong issues. ...

Test for right versus right paradigms. ...

Apply the resolution principles. ...

Investigate the trilemma options. ...

Make the decision.

7 0
2 years ago
16 . You are turning onto a two-lane road divided by a broken yellow line. You know immediately that:
Over [174]

When a person is turning onto a two-lane road divided by a broken yellow line, you know immediately that you are on a two-way road.

<h3>What is the road about?</h3>

Note that a Yellow centerlines can be seen in roads and it is one that is often used to separate traffic moving in different directions.

Note also that Broken lines can be crossed to allow slower-moving traffic and as such, When a person is turning onto a two-lane road divided by a broken yellow line, you know immediately that you are on a two-way road.

See full question below

You are turning onto a two-lane road divided by a broken yellow line. You know immediately that:

Answers

You are on a two-way road.

You are on a one-way road.

The road is under repair.

You must stay to the left of the broken yellow lines.

Learn more about  two-way road from

brainly.com/question/13123201

#SPJ2

5 0
1 year ago
Should the ship breaking business continue why or why not?
Dmitry [639]

Answer:

Ship-breaking or ship demolition is a type of ship disposal involving the breaking up of ships for either a source of parts, which can be sold for re-use, or for the extraction of raw materials, chiefly scrap. It may also be known as ship dismantling, ship cracking, or ship recycling. Modern ships have a lifespan of 25 to 30 years before corrosion, metal fatigue and a lack of parts render them uneconomical to operate.[1] Ship-breaking allows the materials from the ship, especially steel, to be recycled and made into new products. This lowers the demand for mined iron ore and reduces energy use in the steel making process. Fixtures and other equipment on board the vessels can also be reused. While ship-breaking is sustainable, there are concerns about the use of poorer countries without stringent environmental legislation. It is also labor-intensive, and considered one of the world's most dangerous industries.[2]

In 2012, roughly 1,250 ocean ships were broken down, and their average age was 26 years.[3][4] In 2013, the world total of demolished ships amounted to 29,052,000 tonnes, 92% of which were demolished in Asia. As of January 2020, India has the largest global share at 30%;[5] followed by Bangladesh, China and Pakistan.[6] Alang, India currently has the world's largest ship graveyard,[5] followed by Chittagong Ship Breaking Yard in Bangladesh and Gadani in Pakistan.[6]

The largest sources of ships are states of China, Greece and Germany respectively, although there is a greater variation in the source of carriers versus their disposal.[7] The ship-breaking yards of India, Bangladesh, China and Pakistan employ 225,000 workers as well as providing many indirect jobs. In Bangladesh, the recycled steel covers 20% of the country's needs and in India it is almost 10%.[8]

As an alternative to ship-breaking, ships may be sunk to create artificial reefs after legally-mandated removal of hazardous materials, or sunk in deep ocean waters. Storage is a viable temporary option, whether on land or afloat, though all ships will be eventually scrapped, sunk, or preserved for museums.

6 0
3 years ago
The "Big Dig" was the nickname of the civil engineering project that redesigned the highway Infrastructure for the city of
zheka24 [161]
Geotechnical since it’s geologicaly based
4 0
3 years ago
Write an<br> algorithm and draw a flowchart to convert the length in feet to<br> centimeter
Simora [160]

Answer:

blah blah blah sh ut up read learn

3 0
2 years ago
Other questions:
  • Given int variables k and total that have already been declared, use a do...while loop to compute the sum of the squares of the
    15·1 answer
  • Which solution causes cells to shrink
    13·1 answer
  • Note that common skills are listed toward the top, and less common skills are listed toward the bottom.
    14·1 answer
  • What was the first roblox player A.bob B.roblox C.builderman
    5·2 answers
  • This question allows you to practice proving a language is non-regular via the Pumping Lemma. Using the Pumping Lemma (Theorem 1
    10·1 answer
  • The removed soil at an excavation site is also called spoil?​
    14·1 answer
  • The thermal energy is carried by electromagnetic waves
    12·1 answer
  • Choose the three questions that an engineer should ask himself or herself when identifying the need of a problem.
    6·2 answers
  • Drag each label to the correct location on the table. Match to identify permanent and temporary structures.
    15·1 answer
  • Question is written in following attached screenshot.
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!