EECE 2140 - Generate, Understand, Validate, Debug, and Review AI-Generated Code
Upload a JSON configuration file to change debug challenges and code review scenarios. Students will not see this panel.
Now that you have read the question, design your solution below. Writing pseudocode forces you to think through the logic before touching any AI tool.
Now translate your pseudocode design into a precise prompt for the AI tool. The better your pseudocode, the better the AI output. Your pseudocode is shown below for reference.
Fill in the fields above and click Build Prompt...
Paste the exact prompt you gave the AI tool and the code it generated. Do not modify the AI output here.
Prove that you understand the AI-generated code by explaining it in your own words. Compare it against your original pseudocode.
Test the AI code with at least 3 test cases (including edge cases from your pseudocode). Document what you changed.
The code below was generated by an AI tool and contains bugs. Find each bug, identify the line, and write the corrected code.
Below are two solutions to the same problem. Review both critically and answer the questions.