|
MAIN_PROMPT = """ |
|
Module 7: Understanding Non-Proportional Relationships |
|
|
|
Task Introduction |
|
"Welcome to this module on understanding non-proportional relationships! In this module, you’ll explore why certain relationships are not proportional, identify key characteristics, and connect these ideas to algebraic thinking. Let’s dive into some problems to analyze!" |
|
|
|
🚀 **Problems:** |
|
**Problem 1:** Ali drives at an average rate of 25 miles per hour for 3 hours to get to his house from work. How long will it take him if he is able to average 50 miles per hour? |
|
**Problem 2:** Tugce’s cell phone service charges her $22.50 per month for phone service, plus $0.35 for each text she sends or receives. Last month, she sent or received 30 texts, and her bill was $33. How much will she pay if she sends or receives 60 texts this month? |
|
**Problem 3:** Ali and Deniz both go for a run. When they run, both run at the same rate. Today, they started at different times. Ali had run 3 miles when Deniz had run 2 miles. How many miles had Deniz run when Ali had run 6 miles? |
|
|
|
💡 **Before receiving guidance, explain your reasoning for each problem.** |
|
🚀 **Let's start with Problem 1. What do you think—Is the relationship between speed and time proportional? Why or why not?** |
|
""" |
|
|
|
def get_prompt_for_problem(problem_number): |
|
if problem_number == "1": |
|
return """ |
|
### **Problem 1: Ali's Driving Speed** |
|
Great! Let’s analyze the relationship between speed and time. |
|
📌 **Before we discuss, explain your reasoning:** |
|
- How do you determine if a relationship is proportional? |
|
- What happens to travel time when speed increases? |
|
✏️ **Describe your thought process first.** I will ask follow-up questions before offering hints or solutions. |
|
""" |
|
|
|
elif problem_number == "2": |
|
return """ |
|
### **Problem 2: Tugce's Cell Phone Bill** |
|
Nice choice! Let’s break this down step by step. |
|
📌 **Before we discuss, explain your reasoning:** |
|
- What is the fixed charge in the bill, and why does it matter? |
|
- How does the cost per text affect proportionality? |
|
✏️ **Describe your thought process first.** I will ask follow-up questions before offering hints or solutions. |
|
""" |
|
|
|
elif problem_number == "3": |
|
return """ |
|
### **Problem 3: Ali and Deniz's Running** |
|
Good thinking! Let’s explore the relationship between their distances. |
|
📌 **Before we discuss, explain your reasoning:** |
|
- If both run at the same rate, why does their distance differ? |
|
- How can we determine the pattern in their distances over time? |
|
✏️ **Describe your thought process first.** I will ask follow-up questions before offering hints or solutions. |
|
""" |
|
|
|
return "I didn’t understand your choice. Please select Problem 1, 2, or 3." |
|
|
|
def get_feedback_for_problem(problem_number, teacher_response): |
|
if problem_number == "1": |
|
if "inverse" in teacher_response.lower(): |
|
return "Good observation! Since speed and time vary inversely, increasing speed decreases time. Can you verify if the ratio stays constant?" |
|
return "Think about what happens to travel time when speed increases. Does the ratio between speed and time remain fixed?" |
|
|
|
elif problem_number == "2": |
|
if "fixed charge" in teacher_response.lower() and "$22.50" in teacher_response.lower(): |
|
return "Great insight! The fixed charge prevents proportionality. How does the per-text charge fit into this?" |
|
return "What happens if the number of texts is zero? Does the total cost still change? Why?" |
|
|
|
elif problem_number == "3": |
|
if "constant difference" in teacher_response.lower(): |
|
return "Nice thinking! The key here is the additive nature of their distances. Can you determine the difference at another point in time?" |
|
return "Since they run at the same speed but started at different times, how does that affect their distances?" |
|
|
|
return "Interesting approach! Could you clarify your reasoning a bit more?" |
|
|