0

I am trying to rebuild my code for my final project due in 2 hours... I am getting a stray \147 and 148 error, along with various other errors. What am I doing wrong???? I am not very good at this C++ stuff, so any help would be appreciated :) Please see program below:

```
int main ();
float amount = 0;
cout << 'enter the amount:' << endl;
cin >> amount;
float JT [amount];
{
for (n=0 ; n<10 ; n++) // loop which inputs array data and calculate its sum
cout << “Enter number” << endl;// request for user input
cin >> JT[n];
}
float avg = 0;
float temp = 0;
{
for (int n = 0; n<amount; n++) //adds up the values in the array and store that value
temp += JT[n];
}
avg = average (temp, amount);
cout << “The average age for the IT department is: “ << avg << endl;
return 0;
}
```

*Edited 5 Years Ago by Nick Evan*: Added CODE-tags