Firstly, with the do-while loop, line 6 and 7 will not be necessary. If the user inputs -99, the program will exit the loop automatically. The use of an if-statement and break is redundant.
Turning this into a while-loop is very simple. Remember, the only real difference between a while and do-while is that in a while the test comes first, then it enters the loop depending on if it passed the test. In a do-while, it will enter the loop and the test happens at the end. Thus, a do-while guarantees at least 1 iteration around the loop.
So to turn this into a while loop, just put the test (while hours !=-99) before the opening brace, and remove the semi-colon. Again, an if-statement and break will not be necessary.