I forgot about the code tags - my error.
I incorporated your suggestions and it worked. The current code:
#include <iostream>
#include <cmath>
#include <iomanip>
using namespace std;
int main()
{
/* declare array */
int dollars[6] = {25, 30, 50, 20, 15, 25};
int high = dollars[0]; /*...