Computer Science, asked by NaveenKumar14765, 4 months ago

Equations for analyzing the reliability of instrumentation can be developed from the study of statistics and probability, where the reliability is the proportion of the time that the component works properly. Thus, if a component has a reliability of 0.8, then it should work
properly 80% of the time. If ‘r’ is the reliability of a 2 components, then it can have either parallel or serial configurations. Assume that we have 2 components in the machine and the following code decide the instrumentation reliability.
While(k {
[S1:] Num1= generate random numbers between 0 and 1
[S2:] Num2 = generate random numbers between 0 and 1
[S3:] if each number ≤ component reliability,
[S4:] increment series_success by 1
If any number ≤ component reliability,
[S5:] increment parallel_success by 1
increment k by 1
}
a) Consider the above code for finding the molecular weight that resemble the production “ SWhile (B) S1 S2 S3” “S3 if (B) S4” Where S1,S2,S3,S4 specifies the instruction statement. Apply Backpatching and design Syntax Directed Translation for the above control structure.
b) Perform Data Flow Analysis and find the “IN[WhileBlock], OUT[WhileBlock], IN[S1], OUT[S1], IN[S2], OUT[S2], IN[S3], OUT[S3], IN[S4],OUT[S4] using Data Flow Equation.


plx find solution for those urgent

Answers

Answered by raja3512
0

Answer:

xgdnfi, I have a look at the moment, so I can see the full address of the data, and I will have to do

Similar questions