rearranged the order of printed information to display the header after asking for user to input a letter