Research Article

Gamification and Machine Learning Inspired Approach for Classroom Engagement and Learning

Algorithm 1

Attendance-based coin distribution.
(1)SET StuddentATT_coin = 4000
(2)if student status == ABSENT then
(3)StudentATT_coins=studentATT_coins -100
(4)else if student status==studentDUTYLEAVEthen
(5)studentATT_coins = studentATT_coins +100
(6)else if student status = = PRESENT then
(7)student ATT_coins = studentATT_coins +0
(8)if student task = = COMPLETED OR studentanswer = = 
CORRECT then
(9)student_coins = studentATT_coins + bonus coins
(10)else
(11)student ATT_coins = studentATT_coins +0
(12)end if
(13)else
(14) PRINT “wrong input”
(15)end if