Guess The Note - Selection Statements
Programming Module

 

Create a program that plays a random note using the generateNote() method and then asks the user to guess the note by entering a number between 1-7. The program should tell the user whether the answer was correct, higher, or lower than the played note.

The SoundManager class has a method called generateNote() that plays a random piano note and returns an integer value between 1-7
Here's the integer representation of the music notes: