Skip to main content
CS Teaching Tips

Main navigation

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

Have students write methods that perform tasks of a standard music player in Java to give them practice manipulating data structures in a familiar context.

  • This assignment can be implemented earlier in a student’s CS career using arrays, or later on using stacks and queues.
  • For a detailed explanation of this assignment, visit Stanford’s nifty assignment page.

More about this tip

Tags

  • Data Structures
  • Meaningful and Relevant Content
  • CS 1
  • Intro Programming
  • CS 2
  • Java
External Source
Stanford Nifty Assignment by Allison Obourn and Marty Stepp.
Other Tips By
Other Tips By Marty Stepp
Marty Stepp

Similar tips

Mention to students that individual blocks in Scratch and Snap can be tested by double clicking them in the block library so they know this useful, non-intuitive trick for learning what an individual block does.
Help students build intuition about recursion in Python by comparing each recursive call to a function call, which may be more intuitive for students in introductory classes.
Highlight key differences between math, CS, and engineering to give students context for why CS is a distinct field in itself. Let students know that you don’t necessarily have to excel in one field to excel in the others.

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

Privacy Policy