I'm trying to write a card counting program, but I'm a bit confused about something. I'm reading card data (like ace, queen, 5, etc.) from a text file, and each number card or face card is assigned a value of either 1, 0, or -1. Two through six are given a value of +1, seven through nine are given a value of 0, and ten through ace are given a value of -1. The program is supposed to add up all the cards from the text file and print a value, but I'm confused about how I'm supposed to tell the program what the values of the cards are so it can add them all up. I was thinking about using an if...else statement, but I'm not entirely sure how to make it work. I'll post the code and the text file if necessary.