I have to convert 2D into 2 of Diamonds. I can not use if statements.
If the person enters 10C then it prints out 10 of clubs.
I've contemplated trying taking the string length, taking the position end of the string and using the D,C,S,H in the switch statements
But if the user enters AH, it must print out Ace of Hearts. the A is not a numerical value to be stored as an INT, making it hard
So far I've gotten the input.
I don't believe enums would be a smart move here, or even how to implement them.
My thought would be to take the length of string, take the last position put it into the first switch statement, concatenate with (0,(1 - length))
My only question would be how to determine if it was an INT or a CHAR.