Part One (Homework 8) of this assignment must be submitted by 9pm on Friday, November 11. Late work is accepted until 10am on the following Monday with a 10-point late penalty. Also, twice during the semester you may submit a very late homework by the following Wednesday with a 13-point late penalty. Part Two (Homework 9) must be submitted by 9pm on Friday, November 18. Late work is accepted until 10am on the following Monday with a 10-point late penalty. Also, twice during the semester you may submit a very late homework by the following Wednesday with a 13-point late penalty.
You may talk with other students and instructors about the assignments, and you may help each other in any way to create your initial photos for use in this assignment. But you may not look at or copy code written by others. The penalty for violating this code is an F for the entire semester.
For Part 2 (Homework 9), do not submit your .wav file. Submit only your program! Otherwise, the TA cannot grade your work!
For full credit, your work must show good judgement in deciding which parts of your program to make into separate functions with parameters. A large main program or individual large functions will not receive full credit. Also, all your work must follow the ten essential style items from www.cs.colorado.edu/~main/style.html.
bgi++ -Wall -g player.cxx -lwinmm -o player
That's a lower-case letter L before the winmm in the compile command.
For Part 1 (Homework 8), there are two functions called compute_averages and reverse_array that you must implement in the player.cxx file.
Note: The volume_forward function can return a value between 0.0 and 1.0, but in practice, it does not vary all that much. Actual values are typically between 0.5 and 0.7 for the test song that I'm using.
We're not giving you much guideance on Homework 9 because we want this to be an open-ended task with no absolute right or wrong answer. The TAs will assign at least 80/100 points for any program that meets the requirement of being an animation that depends on the volume_forward function at any given time. The additional 20 points will come from the TAs judgement of how much thought and effort went into your work.