Research Article

Gamification and Machine Learning Inspired Approach for Classroom Engagement and Learning

Algorithm 4

Online quiz performance-based coin distribution.
(1)Input: studentATT_coins, bonus
(2)Read student list S List
(3)for student in S List do
(4)if student is in top 5 then
(5)  studentATT_coins = studentATT_coins + correct_ans × bonus × 2
(6)else
(7)  studentATT coins = studentAT T coins + correct ans × bonus
(8)end if
(9)end for