Step 4. Move the current card to another pile called Pile 2 and repeat from step 3
Step 10. Maintain a variable X and store sum of A and B in it
3.5 points
7) What will be the value of X after execution of the following procedure using the "Shopping Bills" dataset? 3.5 points
Step 1. Arrange all cards in a single pile called Pile 1
Step 2. Maintain five variables A, B, C, D, Y and initialize them to 0
Step 3. Maintain a variable X and initialize it to "None"
Step 4. If Pile 1 is empty then stop the iteration
Step 5. Read the top card in Pile 1
Step 6. If the customer name is "Akshaya" then add total bill amount to A and if A > Y then store A in Y and
"Akshaya" in X
Step 7. If the customer name is "Advaith" then add total bill amount to B and if B > Y then store Bin Y and "Advaith
in X
Step 8. If the customer name is "Abhinav" then add total bill amount to C and if c > Y then store in Y and
Abhinav" in X
Step 9. If the customer name is "Ahmed" then add total bill amount to D and if D > Y then store Din Y and "Ahmed"
in X
Step 10. Move the current card to another pile called Pile 2 and repeat from step 4
lechar
Answers
Answered by
1
Ahmed is the answer for the question
Similar questions