Classroom resource allocation is a challenging problem in educational institutions. The use of cloud computing can aid in the optimization of this process by allowing resource providers to allocate resources to users in a timely and efficient manner. In this paper, we propose a modified Salp Swarm Algorithm (SSA) to optimize the allocation of classroom resources. The proposed approach involves generating a population of salps representing potential solutions to the resource allocation problem and updating the positions of the salps iteratively based on a fitness function and mathematical equations. We conducted simulations of the proposed algorithm on various numbers of tasks and sources to evaluate its performance. The results indicate that the modified SSA algorithm can efficiently allocate classroom resources, achieving lower completion time of tasks (makespan) with lower costs. This paper contributes to the literature by introducing an effective approach to solve the classroom resource allocation problem.