Research Article
Gamification and Machine Learning Inspired Approach for Classroom Engagement and Learning
Algorithm 3
Student involvement-based coin distribution.
(1) | Input: student challenge, bonus, studentATT_coins | (2) | if student challenge = = APPROVED then | (3) | studentATT_coins = studentATT_coins + bonus | (4) | if student result is in top1 then | (5) | studentATT_coins = studentATT_coins + bonus coins | (6) | else | (7) | studentATT_coins = studentATT_coins | (8) | end if | (9) | else if student challenge = = DECLINED then | (10) | if student challenge = = ODD then | (11) | | (12) | studentATT_coins = studentATT_coins – 10 | (13) | else | (14) | studentATT_coins = studentATT_coins | (15) | | (16) | end if | (17) | end if |
|