Uploaded by Arijit Paul

Graded Assignment- 2 IITM Online Degree

advertisement
arijit.01paul@gmail.com
Sep Quali*er - 2022: CT
Course
Scores
Announcements
Forum
CalC
Graded Assignment- 2
1) The following procedure *nds the highest Physics marks among females and the lowest Physics marks among 2 points
males from the “Scores” dataset. The programmer may have made mistakes in one or more steps. Identify all such steps (if
any). It is a Multiple Select Question (MSQ).
Step 1. Arrange all cards in a single pile called Pile 1
Step 2. Initialize variable Fmax to 0 and variable Mmin to 101
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 Mmin > Physics marks then store Physics marks in Mmin
Step 6. If Gender is 'F' and Fmax < Physics marks then store Physics marks in Fmax
Step 7. Move the current card to another pile called Pile 2 and repeat from step 3
Step 2: Incorrect initialization of variable Fmax
Step 5: Incorrect condition for comparing the value of variable Mmin
Step 6: Storing Physics marks in Fmax is incorrect
No mistake
Download