I have an assignment in my intro level programming class to write a program to count the number of times a character occurs in a file. My professor showed us how to write this program in class but I...