Hey Cadimus, I appreciate the bind you are in. I want you to do well so you can be successful, but answering an exam question for you is really against what AOD stands for. Getting generic advice like Yetz gave is fine, but please don't ask us to do your work.
I don't usually respond to questions like this in more detail, however, I think Yetz advice is bit off and may lead you to an over complicated/wrong solution. The problem doesn't look for you to ask for the number of temps/hours in a loop until the user decides to quit. It wants you to ask for the number up font, then prompt for values until done. In the first problem, you want a structure more like this.
Code:
//get number of temps from user
//for number of temps entered (a while loop is just as useful, but either way you'll need to track the variable separately from the number of temps)
//get temp from user and store the value in a way that lets you create an average (I would NOT recommend trying to store the values separately)
//if num temps > 0
//calculate and show the average
//else
//show default message