When I run my code and it loops with the do-while loop because the user decided that the information he or she has entered was incorrect the code is somehow changed. When looping the code, the two main questions appear next to each other and the user is then only able to answer the second question. Could anyone please why the program would be acting this way?
There's a newline character hanging around after 'n' is input for incorrect at line 37. This is getting picked up as input for the title. Using cin.ignore() after the incorrect variable is read in is one way to handle this.