C++ Programming/Scope/Examples/Program Average