CASE FILE Design Sprint §6/6
Task

Loop Run

Task: Run Your First Dev Loop With Claude

Your goal: Build a small working program using the dev loop.

Setup:

  1. Open a text editor or IDE (VS Code, Cursor, or a web playground like replit.com).
  2. Keep this lesson visible alongside your editor.
  3. Have a terminal or "Run" button ready.

The Build:

Tell Claude (in this chat, or a new Claude session, or your IDE's AI assistant):

"Write a JavaScript function that takes an array of numbers and returns an object with these properties:

  • count: how many numbers
  • sum: the total
  • average: the sum divided by count
  • min: the smallest
  • max: the largest

Example input: [3, 7, 2, 9, 1] Expected output: { count: 5, sum: 22, average: 4.4, min: 1, max: 9 }"

The Test:

Copy the code Claude gives you into your editor. Run it with your test input. Record the output.

The Iterate (if it fails):

If the output is wrong, show Claude the error or wrong result, and ask it to fix it. Run again.

The Deliverable:

Once it works, paste the final working code and write a 2–3 sentence summary:

  • What did the AI get right on the first try?
  • What did you have to ask it to fix (if anything)?
  • How many cycles did the loop take?
Open Claude Output · project