the following pseudocode is executed using the Snopping pulis aataset. wnat will the values or the
variables A and B represent at the end of the execution?
SumSV = 0, SumBB = 0
CountSV = 0, Count BB = 0
while (Pile 1 has more cards) {
Read the top card X from Pile 1
if (X.Shop Name == "SV Stores") {
SumSV = SumSV + X. TotalBillAmount
CountSV = CountSV + 1
}
if (X. Shop Name == "Big Bazaar") {
SumBB = SumBB + X. TotalBillAmount
Count BB = Count BB + 1
}
Move X to Pile 2
}
MSV = SumSv / Count SV
MBB = SumBB / Count BB
A = 0, B = 0
while (Pile 2 has more cards) {
Read the top card X from Pile 2
if (X Shop Name "SV Stores" and X. TotalBillAmount < MSV) {
A = A +1
Answers
Answered by
0
Answer:
please mark me at brainly
Explanation:
please mark me at brainly
Similar questions