Professional Documents
Culture Documents
Coding With AI Resources
Coding With AI Resources
Ask your teacher if you should translate the pseudocode to your chosen language by
writing it out on this activity guide, in the space next to the pseudocode, or by typing out
the code in your IDE.
1. Sum of Numbers
Pseudocode
Initialize sum to 0
Initialize N to total of numbers to add
For i from i to N
Add i to sum
End for
Print sum
Code
Pseudocode
Initialize factorial to 1
For i from i to N
Multiply factorial by i
End For
Print factorial
Code
Pseudocode
If a number mod 2 is 0
Print “Even”
Else
Pring “Odd”
End If
Code
Pseudocode
Code
Pseudocode
Code
Pseudocode
Initialize start to 0
Initialize end to length of array - 1
While start is less than end
Swap array[start] with array[end]
Increment start
Decrement end
End While
Print array
Code
Pseudocode
Code
Pseudocode
Code
Pseudocode
Code
Pseudocode
Code
AI Strategies
The strategy below represents a situation you may encounter during the initial stages of program
development, from “I have an idea to create an adventure game, but I don’t know exactly what I want”
to “I know exactly what my idea is and the features I want in my program and would like some
pseudocode to help get me started with one of those features.” Check with your teacher if you and your
partner should try all four strategies (two each) or focus on specific ones.
As you explore the AI strategies, discuss with your partner and compare which strategies each of you
finds supportive to your learning. Don’t forget to document your experiences in your AI Strategies Journal.
Tip #2: To get more support, ask broad questions that invite exploration and discussion
● Example Open-Ended Questions:
○ What are a few elements that could make the treasure hunt engaging and exciting for
users?
○ What are a few considerations that should be made to ensure the app is accessible
and enjoyable for a wide demographic?
Tip #3: As the AI responds, keep the dialogue going by asking follow-up questions, seeking
clarifications, and exploring the responses further.
● Example Follow Up Question:
○ How could technology, such as Augmented Reality (AR) or GPS, enhance the treasure
hunting experience?
Tip #4: Pose new questions based on your refined idea to delve deeper into specific aspects.
● Example Refined Idea Description:
○ My refined idea is a Treasure Hunt app utilizing AR and GPS technology to create
engaging, safe, and accessible treasure hunting experiences in a city setting. How could
the app foster a sense of community among users, and encourage positive interactions
both online and offline?
When asking the AI for suggestions, it often gets carried away and gives you too many suggestions
which are overwhelming. If this happens, reword your question and ask the AI for a specific number of
suggestions, like 2 or 3.
As you explore the AI strategies, discuss with your partner and compare which strategies each of you
finds supportive to your learning. Don’t forget to document your experiences in your AI Strategies Journal.
✅ Instructions
Goal: Describe the idea to the AI model and receive suggestions and insights about the goal, target
audience, and any features to enhance the program idea.
1. Choose at least one idea listed below or use a general idea you already have.
○ Virtual Pet Care App - users can adopt, nurture, and play with virtual pets
○ Music Mood Matcher - a program that can create playlists based on the user’s mood
○ Eco-Friendly Challenge Game - a game that challenges players to live an eco-friendly
life
○ Fitness Friend - app that creates personalized workouts and meal plans
○ Refined idea from Socratic Dialogue strategy
The AI will often get carried away and give you too many
suggestions which are overwhelming. If this happens, reword your
question and ask the AI for a specific number of suggestions, like 2
or 3.
As you explore the AI strategies, discuss with your partner and compare which strategies each of you
finds supportive to your learning. Don’t forget to document your experiences in your AI Strategies Journal.
✅ Instructions
Goal: Discuss the project and the feature(s) you identified with the AI to get recommendations on
which libraries are best suited for that part of the project.
1. Choose one of the programming project ideas listed below or use a project idea you already
have.
○ Beat Match Music App - A music app that allows users to discover new songs and artists
based on their current music preferences and listening habits.
■ Features: Signing up and logging in, discovering new songs and artists based on
listening history, creating, editing, and sharing playlists, following friends and
exploring their music, liking and commenting on shared music and playlists.
○ EcoTracker - An app that helps users track and reduce their carbon footprint by logging
daily activities and suggesting eco-friendly alternatives
■ Features: Creating an account and setting eco-goals, logging daily activities like
transportation and waste generation, viewing carbon footprint calculations and
history, receiving suggestions for eco-friendly alternatives, tracking progress
towards eco-goals over time.
○ Sketch-N-Share - A social drawing app where users can create, share, and collaborate
on digital sketches and artwork
■ Features: Signing up and setting up a profile, creating and editing digital
sketches, sharing sketches with the community, receiving likes and comments on
sketches, collaborating on sketches with others in real-time.
○ Detailed project idea from Brainstorming Assistant strategy
2. Look at the list of program features for your chosen idea, and based on the project description,
decide which of those features you might want to see if there are libraries available that could
aid in the development of that part of the program. Note: Make sure you double-check that the
suggested libraries actually exist for your programming language
AI often gets carried away and gives you too many overwhelming suggestions. If this happens, reword
your question and ask the AI for several suggestions, like 2 or 3.
As you explore the AI strategies, discuss with your partner and compare which strategies each of you
finds supportive to your learning. Don’t forget to document your experiences in your AI Strategies Journal.
✅ Instructions
Goal: Work with the AI to generate pseudocode for one aspect or feature of the project, which you can
then translate to your chosen programming language.
1. Choose one of the programming project ideas listed below or use a project idea you already
have.
○ Memory Lane - A digital journal app where users can record, organize, and reflect on
their daily experiences, photos, and moods.
■ Features: Signing up and logging in, creating and editing journal entries with text
and photos, tracking moods daily, viewing past entries on a timeline, and
searching entries by keywords or dates.
○ Code Quest - A gamified platform where users can learn programming by embarking on
coding quests and challenges.
■ Features: Creating a profile and tracking progress, embarking on coding quests
and challenges, getting real-time feedback on code, discussing and asking
questions in community forums, earning badges, and climbing the leaderboard.
○ Skill Swap - A platform that connects individuals looking to exchange skills – for
example, a user can offer guitar lessons in exchange for Spanish tutoring.
■ Features: Signing up and listing skills, browsing and matching with other skill
swappers, messaging to arrange skill swap sessions, rating and reviewing swap
experiences, and finding local skill swappers based on location.
○ Mind Maze - An app offering a variety of brain-training games and puzzles to help
improve memory, focus, and problem-solving skills
■ Features: Creating a profile and tracking brain-training progress, playing
brain-training games and puzzles, taking on daily mental challenges, challenging
friends to brain games, learning about brain health through fun facts.
Note: Regardless of your prompt, the chatbot can still have “hallucinations” and state things as
facts that sound correct but are not true. It is always important to double-check all information
you find online - whether from an AI or a traditional search engine!
Examples:
Acting as a thought partner, discuss new fundraising ideas with me by providing a list of ideas
with reasons behind each list item.
Acting as a critic, analyze these fundraising ideas I created. Are there any I missed? Which ones
seem particularly good or bad? Provide the analysis in simple terms.
Tips and Tricks
1. Write clear and specific instructions. Since the LLMs try to follow instructions, make the
instructions as detailed as possible. Longer prompts usually are better and provide more
information than shorter prompts. This also includes giving the model an example of the output
you expect before it completes the task.
2. Limit the LLM response. If the output is too long, tell the model to be specific on length. For
example: Use 2-3 sentences, provide 3-4 list items, or use 50 words at most.
3. Reduce hallucinations by splitting up the task. When the task involves finding factual
information, ask the LLM to find relevant information FIRST, then ask it to answer the question
based on the pertinent information that it found. You can also ask the LLM to cite its sources!
4. Be specific about the audience. Tell the model who the audience is (5th graders, teenagers,
college graduates, etc) and how much or what the audience knows (limited knowledge,
beginners, expert in the field ).
5. Simplify the response to gain clarity or a deeper understanding. When you need to
understand the model’s complicated response, tell the model to simplify its response using one of
the example prompts:
2. Define the task: Describe the specific task or action the model should perform. This will clarify
the desired outcome.
3. State the requirements: Clearly state what you need from the model, such as a
recommendation, solution, or answer. This helps narrow down the focus of the conversation.
4. Specify the desired format: Indicate the format or structure in which you would like the final
result to be presented. This ensures the generated output aligns with your expectations.
5. Provide details: Specify any additional details or considerations that should be considered
during the task.
6. Mention restrictions: Clearly state any limitations or restrictions that should be followed. This
helps avoid generating responses that are not suitable or desired.
7. Provide examples: Include examples to give the model a reference point and help it
understand the type of response you are looking for. This can improve the quality and relevance
of the generated answers.
Remember, assigning the model a specific role and providing a straightforward task with clear
format instructions through a well-constructed prompt increases the likelihood of obtaining
accurate and helpful responses.
Name(s) Period Date
Step 1: AI Decisions
Instructions: Decide whether you would use AI to support the initial steps of the programming process.
Instructions: If you would use AI, identify which strategies are most supportive to your learning and
explain why.
● If you stated in Step 1 that you would use AI, identify which of the four strategies you would use.
● Why you would use those strategies and how they would be supportive to your learning.
○ Consider how the strategy assisted you in this stage of the programming process or how
interacting with the AI influenced your thought process or approach?
● When during the initial programming stages would you find this strategy most beneficial? (e.g.,
before you even start, when you are stuck, once you have ideas that need to be refined or
developed)
○ Think about when you might feel the need to turn to the AI strategy (or strategies), and
what might trigger this need in the future.
Instructions: Develop a value statement for each strategy you would use, integrating your insights from
your exploration.
Note: If you answered “no” to the question in Step 1, your value statement will be about why you
would not use each strategy.
● Example Value statement: When a beginner programmer is stuck getting started with the actual
coding, AI can assist by providing pseudocode for a feature or two to help get started, but it is up
to the student to take the pseudocode and create actual code from it to ensure ownership of the
code and coding practice to continue learning.
Value Statement:
Value Statement:
Value Statement:
Value Statement:
Setup
Print the Materials (Single-Sided)
● Instructions (pages 3-5): Students will be working in pairs. There are three different
stations, so you will need to have enough sets of instructions at each station to cover your
class that will be divided amongst the stations.
For example, if you have 20 students, you would have 10 pairs. Three pairs could be at
Station A, three pairs at Station B, and four pairs at Station C. You would print out four copies
of the instructions to cover all of the students.
● Post-it Sticky Notes: Each student will use 2 sticky notes at each station. Ensure there are
enough sticky notes at each station for all students. It will be helpful to have two different
color sticky notes at each station for the two questions.
Note: If you have access to multicolored paper, you may want to print each part on a different
color to be posted around the room. This will help students move from one problem to another
because they will be able to look for unique paper colors rather than walking up to the problem to
determine whether they have already completed it.
Distribute post-its to each pair, or have post-its available at each station. Remind students that
they do not need to complete the stations in order.
Did you find that AI assistance stifled or enhanced your personal creativity during the activity?
Do This:
3. Place your sticky note along the scale on the Station A Poster in the area you determined in step 1.
4. Add your thoughts to the following question on a second sticky: In what ways can AI assistance in coding
If time allows, discuss your scale placement and 2nd sticky response with those at your station.
When would you choose to use AI for brainstorming or refining problem descriptions in future projects?
Do This:
If time allows, discuss your chart placement and 2nd sticky response with those at your station.
Do you think it’s ethical to use AI-generated code in your projects without disclosure?
Do This:
If time allows, discuss your scale placement and 2nd sticky response with those at your station.
] Station Instructions
1. Note in the spaces below where you placed your sticky at each station with an "X".
2. Share your thoughts on your placement and the follow-up question at each station and get
signatures after discussing.
3. Make yourself any notes you want to remember about each station, such as an idea you or
someone else had that you liked and want to remember as you get ready to make your
Values Statement.
STATION A
Did you find that AI assistance stifled or enhanced your personal creativity during the activity?
Notes:
________________
Are there situations where you would avoid using AI in the creative process? Explain.
Notes:
________________
STATION C
Do you think it’s ethical to use AI-generated code in your projects without disclosure?
Notes:
________________
Note: Regardless of your prompt, the chatbot can still have “hallucinations” and state things as
facts that sound correct but are not true. It is always important to double-check all information
you find online - whether from an AI or a traditional search engine!
Examples:
Acting as a thought partner, discuss new fundraising ideas with me by providing a list of ideas
with reasons behind each list item.
Acting as a critic, analyze these fundraising ideas I created. Are there any I missed? Which ones
seem particularly good or bad? Provide the analysis in simple terms.
Tips and Tricks
1. Write clear and specific instructions. Since the LLMs try to follow instructions, make the
instructions as detailed as possible. Longer prompts usually are better and provide more
information than shorter prompts. This also includes giving the model an example of the output
you expect before it completes the task.
2. Limit the LLM response. If the output is too long, tell the model to be specific on length. For
example: Use 2-3 sentences, provide 3-4 list items, or use 50 words at most.
3. Reduce hallucinations by splitting up the task. When the task involves finding factual
information, ask the LLM to find relevant information FIRST, then ask it to answer the question
based on the pertinent information that it found. You can also ask the LLM to cite its sources!
4. Be specific about the audience. Tell the model who the audience is (5th graders, teenagers,
college graduates, etc) and how much or what the audience knows (limited knowledge,
beginners, expert in the field ).
5. Simplify the response to gain clarity or a deeper understanding. When you need to
understand the model’s complicated response, tell the model to simplify its response using one of
the example prompts:
2. Define the task: Describe the specific task or action the model should perform. This will clarify
the desired outcome.
3. State the requirements: Clearly state what you need from the model, such as a
recommendation, solution, or answer. This helps narrow down the focus of the conversation.
4. Specify the desired format: Indicate the format or structure in which you would like the final
result to be presented. This ensures the generated output aligns with your expectations.
5. Provide details: Specify any additional details or considerations that should be considered
during the task.
6. Mention restrictions: Clearly state any limitations or restrictions that should be followed. This
helps avoid generating responses that are not suitable or desired.
7. Provide examples: Include examples to give the model a reference point and help it
understand the type of response you are looking for. This can improve the quality and relevance
of the generated answers.
Remember, assigning the model a specific role and providing a straightforward task with clear
format instructions through a well-constructed prompt increases the likelihood of obtaining
accurate and helpful responses.
Name(s) Period Date
Overview
Use this handout to remind yourself which corner you chose for each of the reflection questions.
You can also use this handout to jot down your thoughts or your classmate’s thoughts that you
would like to remember when it comes time to create your Algorithms and AI Value Statements.
Reflection #1
❓ How did using AI influence your approach to algorithm planning compared to doing it without
AI support?
Corner 1
Significantly improved my approach
Corner 2
Made some positive changes,
💭 My choice & thoughts:
but not major
Corner 3 Corner 4
Had no significant impact Made the process more
confusing or difficult
💬 Someone said:
Reflection #2
£ Do you think reliance on AI for algorithm planning might impact the skills of a programmer in
the long run?
Corner 1
Yes, it will greatly improve skills
Corner 2
It might improve some skills
My choice & thoughts:
but not all
Corner 3 Corner 4
No significant impact on skills It could negatively impact
programming skills
💬 Someone said:
Corner 3 Corner 4
Not sure if there were Did not encounter any
ethical dilemmas ethical dilemmas
💬 Someone said:
Reflection #4
£ How might the use of AI in algorithm planning affect issues of intellectual property and
originality in coding?
Corner 1
Poses a significant risk to originality
Corner 2
May have some impact,
My choice & thoughts:
but manageable
Corner 3 Corner 4
Little to no impact on originality Can actually enhanc
originality and IP
💬 Someone said:
Reflection #5
£ In what situations would you prefer using AI for algorithm planning, and when would you
choose not to use it?
Corner 1
Prefer using AI in most situations
Corner 2
Use AI for complex tasks only
My choice & thoughts:
Corner 3 Corner 4
Rarely use AI, mostly rely on Avoid using AI altogether
traditional methods
💬 Someone said:
Step 1: AI Decisions
Instructions: Decide whether you would use AI to support algorithm planning in the programming
process.
Instructions: If you would use AI, identify which strategies are most supportive to your learning and
explain why.
● If you stated in Step 1 that you would use AI, identify which of the four strategies you would use.
● Why you would use those strategies and how they would be supportive to your learning.
○ Consider how the strategy assisted you in this stage of the programming process or how
interacting with the AI influenced your thought process or approach?
Instructions: Develop a value statement for each strategy you would use, integrating your insights from
your exploration.
Note: If you answered “no” to the question in Step 1, your value statement will be about why you
would not use each strategy.
● Example Value statement: When a beginner programmer is stuck getting started with the actual
coding, AI can assist by providing pseudocode for a feature or two to help get started, but it is up
to the student to take the pseudocode and create actual code from it to ensure ownership of the
code and coding practice to continue learning.
Value Statement:
Value Statement:
Value Statement:
Value Statement:
Instructions
Welcome, young code detectives, to the Mystery Algorithms challenge! Your mission is to unravel
the secrets behind each enigmatic description, deciphering which algorithm is hidden within. Use
your coding knowledge and intuition to crack these puzzles and reveal the true identities of these
mysterious algorithms. Good luck!
Algorithm #1
Mystery Description: "I'm a treasure hunter that divides and conquers, swiftly narrowing down
where the treasure lies in a sorted world. What am I?"
Answer:
Algorithm #2
Mystery Description: "In a kingdom of numbers, I reign supreme by making sure everyone is in
their rightful order, from the smallest peasant to the greatest king."
Answer:
Algorithm #3
Mystery Description: "I'm the wise sage that takes a long journey, visiting every town exactly once
before returning home, seeking the shortest path all along."
Answer:
Algorithm #4
Mystery Description: "In a maze of choices, I'm the guide who finds the path of least resistance,
illuminating the way from start to finish."
Answer:
Answer:
Algorithm #6
Mystery Description: "I'm the crafty detective who asks 'hotter or colder' to zero in on the hidden
number, guessing smarter, not harder."
Answer:
Algorithm #7
Mystery Description: "Like a master chef blending ingredients, I mix and combine arrays until
they're all sorted out, creating a perfect recipe."
Answer:
Algorithm #8
Mystery Description: "In a land of pixels and colors, I'm the artist who compresses images,
capturing essence without the bulk."
Answer:
Algorithm #9
Mystery Description: "I am the guardian of secrets, transforming messages into indecipherable
codes, shielding them from prying eyes."
Answer:
Algorithm #10
Mystery Description: "In the bustling city of social media, I'm the one who decides what news or
stories appear on your feed, based on your interests."
Answer:
Note: Regardless of your prompt, the chatbot can still have “hallucinations” and state things as
facts that sound correct but are not true. It is always important to double-check all information
you find online - whether from an AI or a traditional search engine!
Examples:
Acting as a thought partner, discuss new fundraising ideas with me by providing a list of ideas
with reasons behind each list item.
Acting as a critic, analyze these fundraising ideas I created. Are there any I missed? Which ones
seem particularly good or bad? Provide the analysis in simple terms.
Tips and Tricks
1. Write clear and specific instructions. Since the LLMs try to follow instructions, make the
instructions as detailed as possible. Longer prompts usually are better and provide more
information than shorter prompts. This also includes giving the model an example of the output
you expect before it completes the task.
2. Limit the LLM response. If the output is too long, tell the model to be specific on length. For
example: Use 2-3 sentences, provide 3-4 list items, or use 50 words at most.
3. Reduce hallucinations by splitting up the task. When the task involves finding factual
information, ask the LLM to find relevant information FIRST, then ask it to answer the question
based on the pertinent information that it found. You can also ask the LLM to cite its sources!
4. Be specific about the audience. Tell the model who the audience is (5th graders, teenagers,
college graduates, etc) and how much or what the audience knows (limited knowledge,
beginners, expert in the field ).
5. Simplify the response to gain clarity or a deeper understanding. When you need to
understand the model’s complicated response, tell the model to simplify its response using one of
the example prompts:
2. Define the task: Describe the specific task or action the model should perform. This will clarify
the desired outcome.
3. State the requirements: Clearly state what you need from the model, such as a
recommendation, solution, or answer. This helps narrow down the focus of the conversation.
4. Specify the desired format: Indicate the format or structure in which you would like the final
result to be presented. This ensures the generated output aligns with your expectations.
5. Provide details: Specify any additional details or considerations that should be considered
during the task.
6. Mention restrictions: Clearly state any limitations or restrictions that should be followed. This
helps avoid generating responses that are not suitable or desired.
7. Provide examples: Include examples to give the model a reference point and help it
understand the type of response you are looking for. This can improve the quality and relevance
of the generated answers.
Remember, assigning the model a specific role and providing a straightforward task with clear
format instructions through a well-constructed prompt increases the likelihood of obtaining
accurate and helpful responses.
Name(s) Period Date
AI Strategies
The strategy below is a way to use AI to support your code debugging.
As you explore the strategy, discuss with your partner and compare which strategies support your
learning. Don’t forget to document your experiences in your AI Strategies Journal.
✅ Instructions
Goal: Interact with the AI to analyze the code, discuss error possibilities, and propose solutions.
1. Translate the buggy pseudocode segments below into your chosen programming language.
○ Choose one segment to translate and use with the AI at a time.
2. Use the example AI System Prompt to begin interacting with the AI to discuss error possibilities.
3. Based on your interaction with the AI, debug the code and run the segment to see if it works.
Intended function: prints the first few numbers of the Intended function: checks if a given string is a
Fibonacci sequence palindrome and prints true or false
SET firstNumber TO 0 SET inputString TO "madam"
SET secondNumber TO 1 SET isPalindrome TO TRUE
FOR i FROM 1 TO 5 FOR i FROM 0 TO LENGTH OF inputString / 2
PRINT firstNumber IF inputString[i] NOT EQUAL TO
SET temp TO firstNumber inputString[LENGTH OF inputString - i]
SET firstNumber TO secondNumber SET isPalindrome TO FALSE
SET secondNumber TO temp + secondNumber END IF
END FOR END FOR
PRINT isPalindrome
Intended function: finds the largest and smallest Intended function: checks if a number is perfect (sum
numbers in an array. of its divisors equals the number)
SET numbers TO [8, 7, 2, 4, 6] SET number TO 6
SET largest TO FIRST ELEMENT OF numbers SET sum TO 0
SET smallest TO FIRST ELEMENT OF numbers FOR i FROM 1 TO number
FOR EACH number IN numbers IF number MODULO i EQUALS 0
IF number GREATER THAN largest ADD i TO sum
SET largest TO number END IF
ELSE IF number LESS THAN smallest END FOR
SET smallest TO number IF sum EQUALS number
END IF PRINT number, " is a perfect number"
END FOR ELSE
PRINT largest, smallest PRINT number, " is not a perfect number"
END IF
Intended function: reverses the digits of a given Intended function: reverses the characters in a string
number and prints it SET inputString TO "example"
SET number TO 1234 SET reversedString TO EMPTY
SET reversedNumber TO 0 FOR i FROM LENGTH OF inputString DOWN TO 0
WHILE number > 0 APPEND inputString[i] TO reversedString
SET digit TO number MODULO 10 END FOR
MULTIPLY reversedNumber BY 10 PRINT reversedString
ADD digit TO reversedNumber
DIVIDE number BY 10
END WHILE
PRINT "Reversed Number: ", reversedNumber
Tip #2: Make sure you fully understand what the code is doing and have some ideas on the cause of
the error before letting the AI know you are ready to discuss how to correct the code.
As you explore the strategy, discuss with your partner and compare which strategies support your
learning. Don’t forget to document your experiences in your AI Strategies Journal.
✅ Instructions
Goal: Interact with the AI to analyze the code, discuss expectations, and propose solutions.
1. Translate the buggy pseudocode segments below into your chosen programming language.
○ Translate one at a time and interact with the AI with as many code segments as you have
time for.
2. Use the example AI System Prompt to begin interacting with the AI to discuss your expectations
and error possibilities.
3. Based on your interaction with the AI, debug the code and run the segment to see if it works.
Intended function: generate and print a multiplication Intended function: check if a year is a leap year and
table for a given number print the result
SET number TO 5 SET year TO 2020
FOR i FROM 1 TO 10 IF year MODULO 4 EQUALS 0
PRINT number, " * ", i, " = ", number * i IF year MODULO 100 NOT EQUALS 0 OR year
INCREMENT i MODULO 400 EQUALS 0
END FOR PRINT year, " is a leap year"
END IF
ELSE
PRINT year, " is not a leap year"
END IF
Intended function: swap two numbers and print the Intended function: print all even numbers in a given
result range
SET a TO 5 SET start TO 1
SET b TO 10 SET end TO 10
SET temp TO a FOR i FROM start TO end
SET a TO temp IF i MODULO 3 EQUALS 0
SET b TO a PRINT i
PRINT "a: ", b, " b: ", a END IF
END FOR
Intended function: calculate the average of a set of Intended function: reverse the order of words in a
grades sentence
SET grades TO [80, 90, 75, 88] SET sentence TO "Hello world"
SET total TO 1 SET words TO SPLIT sentence BY " "
FOR EACH grade IN grades SET reversedSentence TO EMPTY
ADD grade TO total FOR EACH word IN words
END FOR PREPEND word TO reversedSentence
SET average TO total DIVIDED BY LENGTH OF grades ADD " " TO reversedSentence
PRINT "Average grade is: ", total END FOR
PRINT reversedSentence
Tip #2: Make sure you fully understand the error before letting the AI know you are ready to discuss
how to correct the code.
Step 1: AI Decisions
Instructions: Decide whether you would use AI to support debugging during the programming process.
Instructions: If you would use AI, identify which strategies are most supportive to your learning and
explain why.
● If you stated in Step 1 that you would use AI, identify which of the two strategies you would use.
● Why you would use those strategies and how they would be supportive to your learning.
○ Consider how the strategy assisted you in this stage of the programming process or how
interacting with the AI influenced your thought process or approach.
Instructions: Develop a value statement for each strategy you would use, integrating your insights from
your exploration.
Note: If you answered “no” to the question in Step 1, your value statement will be about why you
would not use each strategy.
● Example Value statement: When a beginner programmer is stuck getting started with the actual
coding, AI can assist by providing pseudocode for a feature or two to help get started, but it is up
to the student to take the pseudocode and create actual code from it to ensure ownership of the
code and coding practice to continue learning.
Value Statement:
Value Statement:
1. Once you find a classmate that fits the prompt, engage in a 🗣 brief discussion l with them about the prompt to
understand their perspective
○ ✅ Jot down the name of the classmate
○ 🎯 Ask them to elaborate on the prompt and write down a key point or two from your conversation
○ 💭 Write down your own thoughts about the prompt
My thoughts:
Coding with AI - AI as Your Debugging Partner 1
Thinks there are certain debugging tasks that 🎯 Key Points:
should only be done by humans, not AI.
Debugging tasks:
✅ Name: _____________________
💭 My thoughts:
Identified a potential ethical dilemma in using AI for Key Points:
debugging:
Ethical Dilemma:
Name: _____________________
My thoughts:
Can give an example of AI making a debugging Key Points:
error and how they corrected it.
AI Error:
Name: _____________________
My thoughts:
Feels that using AI in debugging could lead to Key Points:
over-reliance on technology.
Why:
Name: _____________________
My thoughts:
Believes it is possible to maintain a balance Key Points:
between AI assistance and personal coding skills.
How:
Name: _____________________
My thoughts:
My thoughts:
Feels that debugging with AI could affect their sense Key Points:
of accomplishment in coding.
In what way?
Name: _____________________
My thoughts:
Thinks AI can help them become better at Key Points:
debugging their own code in the long run.
How:
Name: _____________________
My thoughts:
Can describe a scenario where they would prefer Key Points:
not to use AI for debugging and explain why.
Scenario:
Name: _____________________
My thoughts:
Coding with AI - AI as Your Debugging Partner 3
Believes depending too much on AI for debugging 🎯 Key Points:
might affect the learning process for beginner
programmers. Why/How:
✅ Name: _____________________
💭 My thoughts:
Can share a personal experience where AI in Key Points:
debugging led to an unexpected learning Experience:
opportunity.
Learning opportunity:
Name: _____________________
My thoughts:
Has a clear idea about balancing the use of AI in Key Points:
debugging with maintaining their own coding skills.
Idea:
Name: _____________________
My thoughts:
Note: Regardless of your prompt, the chatbot can still have “hallucinations” and state things as
facts that sound correct but are not true. It is always important to double-check all information
you find online - whether from an AI or a traditional search engine!
Examples:
Acting as a thought partner, discuss new fundraising ideas with me by providing a list of ideas
with reasons behind each list item.
Acting as a critic, analyze these fundraising ideas I created. Are there any I missed? Which ones
seem particularly good or bad? Provide the analysis in simple terms.
Tips and Tricks
1. Write clear and specific instructions. Since the LLMs try to follow instructions, make the
instructions as detailed as possible. Longer prompts usually are better and provide more
information than shorter prompts. This also includes giving the model an example of the output
you expect before it completes the task.
2. Limit the LLM response. If the output is too long, tell the model to be specific on length. For
example: Use 2-3 sentences, provide 3-4 list items, or use 50 words at most.
3. Reduce hallucinations by splitting up the task. When the task involves finding factual
information, ask the LLM to find relevant information FIRST, then ask it to answer the question
based on the pertinent information that it found. You can also ask the LLM to cite its sources!
4. Be specific about the audience. Tell the model who the audience is (5th graders, teenagers,
college graduates, etc) and how much or what the audience knows (limited knowledge,
beginners, expert in the field ).
5. Simplify the response to gain clarity or a deeper understanding. When you need to
understand the model’s complicated response, tell the model to simplify its response using one of
the example prompts:
2. Define the task: Describe the specific task or action the model should perform. This will clarify
the desired outcome.
3. State the requirements: Clearly state what you need from the model, such as a
recommendation, solution, or answer. This helps narrow down the focus of the conversation.
4. Specify the desired format: Indicate the format or structure in which you would like the final
result to be presented. This ensures the generated output aligns with your expectations.
5. Provide details: Specify any additional details or considerations that should be considered
during the task.
6. Mention restrictions: Clearly state any limitations or restrictions that should be followed. This
helps avoid generating responses that are not suitable or desired.
7. Provide examples: Include examples to give the model a reference point and help it
understand the type of response you are looking for. This can improve the quality and relevance
of the generated answers.
Remember, assigning the model a specific role and providing a straightforward task with clear
format instructions through a well-constructed prompt increases the likelihood of obtaining
accurate and helpful responses.
Name(s) Period Date
Step 1: AI Decisions
Instructions: If you would use AI, identify which strategies are most supportive to your learning and
explain why.
● If you stated in Step 1 that you would use AI, identify which of the two strategies you would use.
● Why you would use those strategies and how they would be supportive to your learning.
○ Consider how the strategy assisted you in this stage of the programming process or how
interacting with the AI influenced your thought process or approach.
Instructions: Develop a value statement for each strategy you would use, integrating your insights from
your exploration.
Note: If you answered “no” to the question in Step 1, your value statement will be about why you
would not use each strategy.
● Example Value statement: When a beginner programmer is stuck getting started with the actual
coding, AI can assist by providing pseudocode for a feature or two to help get started, but it is up
to the student to take the pseudocode and create actual code from it to ensure ownership of the
code and coding practice to continue learning.
Value Statement:
Value Statement:
Instructions
Fill in the boxes below with your new program feature ideas or improvements when finished
interacting with the AI.
Feature Expansion
Based on your interaction with the AI, sketch or write down a brief plan of how the features could
be integrated into the program.
Your Goal
Your goal is to discuss one prompt at a time with each partner (prompt #1 with the first partner,
prompt #2 with the second partner, etc). Follow these steps:
1. Once you pair up with a classmate in the circle facing you, engage in a 🗣 brief discussion
l with them about the prompt to understand their perspective
○ ✅ Jot down the name of the classmate
○ 🎯 Write down a key point or two from your conversation
○ 💭 Write down your own thoughts about the prompt
○ 🔃 Rotate when the time is up to discuss the next prompt with your new partner
○ ⌛ HURRY! You only have 2 minutes for each prompt!
Key Points:
Name: _____________________
My thoughts:
Prompt #2: How should AI-generated ideas and content be credited or owned? What
are the implications of intellectual property rights?
Key Points:
Name: _____________________
My thoughts:
🎯 Key Points:
✅ Name: _____________________
💭 My thoughts:
Prompt #4: Should AI be allowed to make decisions that could significantly impact
human lives? What limits should be in place?
Key Points:
Name: _____________________
My thoughts:
Prompt #5: How can we ensure that AI respects user privacy while still providing
personalized experiences?
Key Points:
Name: _____________________
My thoughts:
AI Strategies
The strategy below is a way to use AI when you are finished developing a program.
As you explore the strategy, discuss with your partner and compare which strategies support your
learning. Don’t forget to document your experiences in your AI Strategies Journal.
💬 Feature EnhanceMate
Almost every application out there can be improved. Sometimes, it takes
chatting with someone (or something) to get ideas for improving and
expanding our programs. Let’s see if AI can support us with this.
✅ Instructions
Goal: Interact with the AI to get creative feature ideas or improvements.
1. Pick one of the programs listed here:
○ Cultural Exchange App
○ Local Art Scene Explorer
○ Amateur Astronomer’s Assistant
○ Your own finished program
2. Read through your chosen program’s detailed description to understand its
functionality.
3. Use the example AI System Prompt to begin interacting with the AI to discuss possible
feature expansion ideas.
4. Based on your interaction with the AI, sketch or write down a brief plan of how the
features could be integrated into the program on the Beyond the Finished Code
activity guide.
Tip #2: Give the AI your program’s functionality and capabilities in a numbered list. This will make it
easier for the AI to parse out the information.
Tip #3: Ask for clarification on any of the expansion ideas to get more details - the more details you
get, the better you can modify the ideas to your liking!
● Example: Can you give me more detailed insights into [the social sharing feature]?
Tip #4: Ask the AI how a suggested feature idea might be implemented into the program to help you
better understand the suggestion and its implications for the program and its users.
Tip #5: Ask for 2-3 more feature expansion ideas if the first ones provided are not interesting to you.
Tip #6: Sometimes, asking the AI to do a task it is already doing by using different wording helps get
different answers. For example, ask the AI for what functionality or capabilities you might have left out.
● Example: What functionality or capabilities does it seem like I may have left out of my app?
Tip #6: Try asking how AI can be used to help with any of the suggested improvements!
As you explore the strategy, discuss with your partner and compare which strategies support your
learning. Don’t forget to document your experiences in your AI Strategies Journal.
💬 Insight Analyst
User feedback is vital for improving our programs! They can often reveal ideas
for new features or give us insight into potential improvements. The hard part is
going through all that data and extracting common themes and pain points
from user comments. Let’s see if AI can support us with this.
✅ Instructions
Goal: Interact with the AI to identify common themes or pain points a user might have in the app.
○ Pet Care Companion - A comprehensive pet care app providing health tracking, diet
suggestions, activity monitoring, and social features for pet lovers
○ Music Jam Session - An interactive app for music enthusiasts to play, record, and
collaborate on various instruments, offering tools for learning and improvisation.
○ Your own finished program - make sure you have user feedback and reviews!
2. Use the example AI System Prompt and the User Feedback Handout for your chosen program to
begin interacting with the AI to identify common themes or pain points.
○ Depending on your AI model, you can copy and paste the data or attach the document for
the AI to analyze.
3. Based on your interaction with the AI, brainstorm and document potential new features or
improvements on the Beyond the Finished Code activity guide.
Tip #2: Ask for more detail on one of the features to better understand the analysis.
● Example: Can you give more detail on the [Personalization and Recommandations]? Is this a
common theme or pain point, and why?
Tip #3: Splitting up the common themes and pain points might be helpful. Ask the AI to identify
comment themes, then ask it to identify the top 3 pain points.
Tip #4: Ask the AI how an improvement or new feature idea might be implemented into the program to
help you better understand the analysis, any suggestions, and their implications to the program.
Tip #5: Any time the AI gives you a lot of information and you feel overwhelmed, try focusing on just the
first one or two. Or adjust the question you just asked and limit the AI’s results by putting a number limit
on them.
● Example: How can user interaction and engagement be implemented into the app? Please
provide 2-3 suggestions.
Tip #6: Try asking the AI to use simpler language or to explain its insight in 20 words or less. This might
make understanding what the AI is trying to tell you much easier!
Instructions
Depending on your AI model, you can copy and paste the user feedback data or attach this
document for the AI to analyze.
🍽 Culinary Creator
App Description: A cooking app featuring a variety of recipes with step-by-step instructions,
including a grocery list feature and user interaction options
User Feedback:
"Needs more diverse recipes, especially international cuisine."
"I love the step-by-step guide but want videos, not just text."
"The grocery list feature is handy, but it should sync with local stores."
"I really enjoy the app, but it would be great if it had a feature for rating and reviewing the recipes
after trying them out."
"I’m a beginner in the kitchen, and some step-by-step video guides would make the cooking
process much clearer for me."
"It's a good app, but I'm missing a function to filter recipes by cooking time – sometimes I need
something quick!"
"An interactive shopping list that could be shared with family members would be super helpful for
planning meals."
User Feedback:
"The health tracking is helpful, but I wish it included more specific symptoms for different pet
illnesses."
"Love the diet suggestions, but it needs options for pets with special dietary needs."
"It would be great if the app could remind me of upcoming vet appointments."
"The social feature is nice, but I’d like to see more about pet adoption services."
"A tutorial for first-time pet owners on basic care would be really helpful."
"I’d appreciate a feature for tracking my pet’s vaccinations and medical history."
"It’s a bit challenging to navigate through the different sections of the app."
"I wish there was a way to personalize the app based on the type of pet I have."
"A 24/7 vet chat service for quick advice would be amazing."
"It would be helpful if the app could recommend pet-friendly places nearby."
"The grooming tips are good, but videos would be more helpful than text."
User Feedback:
"Needs a wider range of instruments to choose from."
"It would be cool if we could record and share our jam sessions."
"It’s fun to play with, but I wish there was a way to adjust the volume of each instrument
individually for a better mix."
"A feature for tempo adjustment in the jam sessions would be great for practicing at different
speeds."
"I’d love to see a feature where you can challenge friends to jam sessions and compare your
creations."
"It's a decent app, but adding a variety of drum beats and rhythms to play along with would
enhance the experience."
"I'm enjoying the app, but a tutorial mode to learn new instruments would make it even more
valuable for beginners."