Computer Science, asked by brainly3317, 4 months ago

Graded Assignment 3
Х
X
2) The following pseudocode is 4 points
executed using the "Scores" dataset. What will
be the value of the variable Z at the end of the
execution? [Note: Consider only two decimal
places in all division operations.]
SumT = 0, SumM = 0, Sun
Count = 0
while (Pile 1 has more cards)
Read the top card X from
SumT = SumT + X. TO
SumM = SumM + X.M
SumP = SumP + X.ph
SumC= SumC + X. CH
Count = Count + 1
Move X to Pile 2
}
A = SumT/ Count
B = SumM / Count
C = SumP / Count
D = SumC/ Count
Z=0
if (B + C + D) - A <-1)
Z=-1
}
if ((B + C + D) - A > 1) {
Z=1 a -1. b- 0. c-. +1. d-none of the above ​

Answers

Answered by ritik7282kumar
3

Answer:

0

Explanation:

0

Similar questions