“The program shows no error message but it only outputs one ticket there is no ticket number on it.”
Look in the table of contents to find the pseudocode among these tutorial files.
Don’t try to do the whole program and then test it. Pick the bits that are easy to do first and get them working. This might not be the part of the program at the start. Test the program once that is working move onto another line and repeat.
Even the best programmers need to look up commands and the more you use the commands the more familiar they will become.
Even the most experienced programmers make mistakes. Try to fix one error at a time.