You should know that chatgpt is more about language and dialogue than about logic and research. I wouldn't trust it to write a homework with actually good content. It will write bullshit that looks passable.