Math, asked by rajithasrigiriraji, 7 months ago

U
U
Graded Assignment 2
Close
Use the following information to answer the questions 15,16 & 17
What will be the values of A, B and C after execution of the following pseudocode using
the "Scores" dataset?
A=0
B=0
C=0
while (Pile 1 has more cards) {
Read the top card X in Pile 1
if (X.Mathematics Marks > X.Physics Marks) {
A= A + 1
if (X.Mathematics Marks <X.Physics Marks) {
B=B + 1
}
if (X.Mathematics Marks =X.Physics Marks) {
C=C+1
}
}
Move X to Pile 2
}​

Answers

Answered by faizanmulla
19

Answer:

A=16

B=13

C=1

thank me later

Answered by edward99
7

A=17

B=14

C=2

should add +1 for each variable A,B,C

Similar questions