Questions tagged [code-example]

Questions about using concrete code examples when teaching.

Filter by
Sorted by
Tagged with
1
vote
1answer
65 views

Coding assignments for algorithms and data structures?

Do you know of any online resource with ideas/projects for an Algorithms and Data Structures course? Topics in the course include: basic data structures (array, list, stack, queue, priority queue, ...
1
vote
1answer
96 views

An example that compares a computational with a non-computational thinking approach

I have to teach CT to Standard 5 students (11 to 13 yrs). To explain the concept, I am trying to explain to them how CT is beneficial in today's world. The way I learn and appreciate things is by ...
5
votes
4answers
318 views

Examples of innocent looking faulty code for shock effect

I'm becoming more and more convinced that starting with an imperative attitude is not doing a favor to the students, especially if it's all about scheduling and repeating some ...
7
votes
7answers
1k views

Example for For vs While Loop (in Java)

I'm looking for a set of concrete examples that illustrates good use cases of using a for vs a while loop for beginners. I feel ...
8
votes
5answers
786 views

Simple Pointer Examples in C

Thanks to feedback in this thread, I'm beginning to plan how to integrate a basic introduction to pointers into my unit on arrays. Here's a sample program I just wrote up: ...