Step 1. Arrange all cards in a single pile called Pile 1
Step 2. Maintain two variables Mmax, Fmax and initialize them to 0
Step 3. If Pile 1 is empty then stop the iteration
Step 4. Read the top card in Pile 1
Step 5. If Gender is "M" and Mmax > Mathematics marks then store Mathematics marks in Mmax
Step 6. If Gender is "F" and Fmax > Mathematics marks then store Mathematics marks in Fmax
Step 7. Move the current card to another pile called Pile 2 and repeat from step 3
Answers
Answered by
0
Answer:
I don't undeestand Qusetion
Step-by-step explanation:
okk
Similar questions