Problem Set 1

Problem Set 1 is now posted, and is due at the beginning of class on Tuesday, 31 August.

This entry was posted in Announcements, Assignments. Bookmark the permalink.

One Response to Problem Set 1

  1. evans says:

    Question 3 reads:

    Define a method, void playOldSongTempo(int), that takes as input an integer representing a tempo in beats-per-minute and plays the song at the requested tempo…

    Note that void playOldSongTempo(int) specifies the type of the method, but for your declaration you will need to give the parameter a name also. So, your procedure for question 3 should start like the one for question 2:

    static void playOldSongTempo(int tempo) { ... }
    

    The static is necessary if you want to invoke your method directly from main, without creating a FuguFugueOrig object. The static qualifier for a method indicates that there is no this object for the method.