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
For a bolted assembly with eight bolts, the stiffness of each bolt is kb = 1.0 MN/mm and the stiffness of the members is km = 2.
rjkz [21]

Answer:

a) 0.978

b) 0.9191

c) 1.056

d) 0.849

Explanation:

Given data :

Stiffness of each bolt = 1.0 MN/mm

Stiffness of the members = 2.6 MN/mm per bolt

Bolts are preloaded to 75% of proof strength

The bolts are M6 × 1 class 5.8 with rolled threads

Pmax =60 kN,  Pmin = 20kN

<u>a) Determine the yielding factor of safety</u>

n_{p} = \frac{S_{p}A_{t}  }{CP_{max}+ F_{i}  }  ------ ( 1 )

Sp = 380 MPa,   At = 20.1 mm^2,   C = 0.277,  Pmax = 7500 N,  Fi = 5728.5 N

Input the given values into the equation above

equation 1 becomes ( np ) = \frac{380*20.1}{0.277*7500*5728.5} = 0.978

note : values above are derived values whose solution are not basically part of the required solution hence they are not included

<u>b) Determine the overload factor of safety</u>

n_{L} =  \frac{S_{p}A_{t}-F_{i}   }{C(P_{max} )}  ------- ( 2 )

Sp =  380 MPa,   At =  20.1 mm^2, C = 0.277,  Pmax = 7500 N,  Fi = 5728.5 N

input values into equation 2 above

hence : n_{L} = 0.9191n_{L}  = 0.9191

<u>C)  Determine the factor of safety based on joint separation</u>

n_{0} = \frac{F_{i} }{P_{max}(1 - C ) }

Fi =  5728.5 N,  Pmax = 7500 N,  C = 0.277,

input values into equation above

Hence n_{0} = 1.056

<u>D)  Determine the fatigue factor of safety using the Goodman criterion.</u>

nf = 0.849

attached below is the detailed solution .

4 0
3 years ago
What the phat is this
Alex17521 [72]

Answer:

It's Brainly ;)

8 0
3 years ago
Read 2 more answers
The mechanical advantage of a screw is always ____________________ than/to 1. Question 5 options: less, greater, equal, none of
torisob [31]

Answer:well u can use to make a shelter but that's all I can think of ??

Explanation:

3 0
3 years ago
The autorotation spin characteristics of a straight-wing aircraft are induced by Group of answer choices
NemiM [27]

Answer:

More Drag on the down going wing and More Lift on the up going wing

Explanation:

The autorotation spins of blades used in airborne wind energy technology sectors help drive and move the winds and water propeller-type turbines or shafts of generators to produce electricity at altitude and transmit the electricity to earth through conductive tethers.

Sometimes autorotation takes place in rotating parachutes, kite tails. Etc.

As a result, more Drag usually induces the autorotation spin characteristics of a straight-wing aircraft on the downgoing wing and More Lift on the up-going wing.

7 0
3 years ago
. In order to prevent injury from inflating air bags, it is recommended that vehicle occupants sit at least __________ inches aw
scZoUnD [109]
10 inches is the answer
8 0
3 years ago
Read 2 more answers
Other questions:
  • A driver is traveling at 52 mi/h on a wet road. an object is spotted on the road 415 ft ahead and the driver is able to come to
    5·2 answers
  • suppose we number the bytes in a w-bit word from 0 (less significant) to w/8-1 (most significant). write code for the followign
    11·1 answer
  • Let Deterministic Quicksort be the non-randomized Quicksort which takes the first element as a pivot, using the partition routin
    13·1 answer
  • 6. What symptom will be exhibited on an engine equipped with a pneumatic governor system if the cooling fins
    14·1 answer
  • Which actions would the maintenance and operations crews carry out as a building is completed and preparing to open to the publi
    8·2 answers
  • Draw a sketch of the following situations identifying the system or control volume, and the boundary of the system or the contro
    10·1 answer
  • In the situation shown below, what would the Moon look like from Earth? Sun, Earth and Moon Four Moon Views A. View A B. View B
    8·1 answer
  • prove that the heat transfer at the constant pressure is given by the enthalpy change during the process​
    7·1 answer
  • ) If the blood viscosity is 2.7x10-3 Pa.s, length of the blood vessel is 1 m, radius of the blood vessel is 1 mm, calculate the
    13·1 answer
  • CNG is a readily available alternative to _________.
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!