Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

You have been tasked to create a student attendance management system. Students

ID: 3734459 • Letter: Y

Question

You have been tasked to create a student attendance management system. Students aregiven full attendance (marked as P) if they arrive within 10 minutes of the class starting and stay in class until after the last 10 minutes of the session. Students who arrive 10 minutes later than the start of the class and stay until the last 10 minutes of the session will be marked (L) for later. Those who arrive within the first 10 minutes but leave before the session is in its last 10 minutes are marked (E) for Early leavers. If a student has arrived late and left early as per the definition of early leavers and late arrivals above, they will be marked as (LE) for Late arrival and Early Leavers. A student who fails to turn up is marked as absent (A). Formulate an algorithm in pseudocode (Not an actual code implementation) for the logic described.

Explanation / Answer

PSEUDOCODE:-

WRITE "arrival details of student".

READ arrival details

IF student arrive in first 10 minutes and stay untill last 10 minutes of session THEN

WRITE "P"

ELSE IF student arrive ater 10 minutes and stay until last 10 minutes of session THEN

WRITE "L"

ELSE IF student arrives first 10 minutes and leave before the last 10 minutes of the session THEN

WRITE "E"

ELSE IF student arrives after 10 minutes and leave before the last 10 minutes of the session THEN

WRITE "LE"

ELSE

WRITE "A"

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote