You may use AI to help you with the course, but all work must be from you, you cannot use AI to generate programs. Technically using AI is the same having friend write a program for you and calling it your own. If you want to have AI help you with a program or work, you must cite the AI as a reference.

In general, class work submissions, used to meet course requirements (including program, discussion boards, oral presenation, project, quizzes, tests, etc.) must either be the students own work or must clearly acknowledge the source. The use of ChatGP or other AI tools for course assignments is akin to receiving assistance from another person and raises the same concern that work is not your own.