
The purpose of this assignment is to learn to - Use methods/functions to compartmentalize code - Use loops to iterate over large quantities of items - Apply simple mathematical concepts in code - Understand and cast between data types
generateSineSample() method. It should return a sample value according to the mathematical formula for a sine wave,
which is A * sin(2 * pi * f * t), where A is amplitude, f is frequency, and t is time.firstSample and lastSample so that they use the start and end parameters in the method.
start and end are measured in seconds, so you'll need to convert those to sample indices somehow.lastSample so that it's close to the end second, but still ends on a sample with a value of zero.
The period variable may be useful for this, although it isn't strictly necessary.