Skip to main content
CS Teaching Tips

Main navigation

  • Browse All Tips
  • Tags
  • 3D
  • About
  • Rate Tips
  • Tip Sheets

Have students implement a rotating substitution cipher in Java that encrypts and decrypts strings in an assignment that gives them practice manipulating strings in a real-world context.

  • The first cipher they implement in this assignment is also known as a Caesar cipher.
  • To learn more, check out the assignment on Stanford’s nifty assignment page.

More about this tip

Tags

  • Java
  • Meaningful and Relevant Content
  • Interdisciplinary Connections to CS
  • Data Structures
External Source
Stanford's Nifty Assignment by Dave Reed
Other Tips By
Other Tips By Dave Reed

Similar tips

Misconception: students struggle with scopes of variables and may not understand when a variable can be accessed and when it cannot be accessed.
Have each student contribute test cases to a class-wide testing suite for assignments in order to get students thinking about edge cases and improving their implementations.
Ask students how they are doing on assignments to keep them accountable and identify unproductive students when necessary.

For more information or to report a bug, contact us at admin@csteachingtips.org. Built with Bootstrap. Powered by Drupal.

Privacy Policy