Abstract:
The integration of artificial intelligence (AI) in education has been a topic of interest for researchers and educators alike. This paper presents the results of a study that focuses on the use of ChatGPT, an AI-based chatbot, as a tool to assist students and instructors in a first-semester programming course. In the first phase of the study, we compared the performance of ChatGPT with that of actual students in solving programming problems. In the second phase, we evaluated the ability of ChatGPT to grade student assignments based not only on input-output but also on other programming practices such as readability. The results showed that ChatGPT was able to solve programming problems with a high degree of accuracy, and its grading accuracy was comparable to that of human graders. This study highlights the potential of AI-assisted learning in improving the quality of education and the learning experience of students.