Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

i want to understand why months[12] wont work in the cout statement below... i h

ID: 3655568 • Letter: I

Question

i want to understand why months[12] wont work in the cout statement below... i have posted my whole program but it seems to confuse peeps.... i dont want some to do my homework... i need someone to explain why months[12] wont print in the cout sttatement below..... i can post the full program if needed please advise high=highest(rain) cout << high << " was the highest rain for " << months[12]; low = lowest(rain); cout << low << " was the lowest rain for " << months[12] << endl; i need the appropriate month to print with the high/low rain in the c++ statements above.... this is a snippet from my main and this is how my teacher wants it... i keep getting answers that totally change my program therefore she will know i did not create it.... please advise how or what i need to do to get it to print the month after the quotation statements in cout

Explanation / Answer

whenever you want to print the string....no need to give index......if you give the index it will print the character.