Unit 3 Lesson 18: Online PD Discussion


Use this space to discuss the challenge activity for online pd. If you completed this lesson as part of your PD, be sure to share the following:

  • The programming artifact you created in doing the lesson (specific level is specified in code studio).
  • The assessment question or extending learning activity that you produce for this lesson.
  • Notes for others who are going to teach this lesson. This should include:
    • Advice for someone who is going to teach this lesson (consider what was challenging about doing the activity, what you think students will struggle with, etc).
    • What ideas do you have about how to structure and teach this lesson? what modifications do you plan to make to the lesson?
    • What additional resources (if any) might be helpful in teaching this lesson


artifact - https://studio.code.org/projects/applab/ScG4eon8-PqWBP0bUSyshg

assessment question - What’s the difference between “when” and “if”? Do all conditionals have “true” and “false” answers? What happens to your code after the conditional is executed as “true”? as “false”?

advice - students will have trouble stringing conditionals together into an if/else if/else if/else… sequence from the flowchart. Make sure to explain the program flow, especially when there’s another conditional preceding or following it.Biggest issue will be translating from flowchart into code. It would help to go thru a few exercises, even using the ones in the lesson itself, to demonstrate how to create code/logic from the flowcharts.


artifact - https://studio.code.org/projects/applab/oCnEKVMD4nJriz3RdmReWg

assessment question -
If die = 3 which of the two sections of code below will add more points to the score?

if(die == 1) score = score + 1;
else if (die >= 2) score = score + 1;
else score = score + 1;

if (die >= 1) score = score + 1;
if (die >= 2) score = score + 1;
if (die >= 3) score = score + 1;

advice - Students can have a difficult time distinguishing between when to use multiple if statements (in which each condition must be evaluated and the statements will execute if the condition is evaluated as true) and else if statements (in which only one statement will execute when a condition is evaluated as true).


While it is true that many students may have a difficult time reading and understanding flow charts, the charts can be very helpful in demonstrating the flow of a program when the students have a difficult time knowing how to code conditionals.


I agree with the flowchart piece. A lot of my students didn’t want to look at or take the time to read the flowcharts, but if you really focus on them, the coding is super easy. Next year when I teach it I’m going to be a lot more explicit about teaching how to effectively use the flow charts.



Assessment or extension:

Extension- Create a flow chart for the casino game Craps

Advice- Have students practice flow charting. I think it gives them an advantage on writing algorithms and prepare for the PT.


I agree that students have a difficulty with determining when to use multiple ifs or nested ifs. They don’t always realize that it will keep checking each if if they are not nested.