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

Misconception: Students believe that in a primitive assignment, x = y could be the equivalent of y = x; they think that the computer science “=” sign is the same as the mathematical “=” sign.
Use Python’s map function to introduce students to loops early on, because the map function is an provides an easy transition to loops.
Misconception: Students think that when they create a new variable within a function, that function will automatically return that variable’s value when executed.

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

Privacy Policy