AP Computer Science A: Iteration and Loops

Introduction

Imagine writing a program that needs to perform a single action hundreds of times automatically, like counting steps or a game with repeating tasks. How can programmers make a computer complete these actions efficiently?

In this WebQuest, you will explore iteration in Java and learn how to implement it in your real-world programming.

Task

You will work in a group of 3-4 to create a narrated presentation (Canva, PowerPoint, or Google Slides) that explains to and teaches others about loops in Java.

Your project must include explanations, real-world applications, and examples of:

  • "for" loops
  • "while" loops
  • "do-while" loops
  • Enhanced "for" loops

Alongside a short demo program using at least one of each loop type.

Process
  1. Explore each of the following websites to learn the basics of loops in Java:
  2. Build presentation alongside code examples
  3. Record narration, and practice for presentation
  4. Submit!
Evaluation

Content accuracy: 35 points

Code examples: 35 points

Presentation quality and creativity: 20 points

Collaboration: 10 points

Conclusion

You've explored how loops enable programmers to efficiently repeat actions and solve problems in coding. Soon, you will find iteration to be essential in building more advanced programs in computer science.

Enrichment Activity:

Try extra coding challenges on websites such as CodingBat, and submit your completed activity to me for extra credit!