We are told that black fur is dominant to yellow, but what is omitted -- and is very important -- is that only females can be tortoiseshell. So, let's use some symbols to define our genotypes, and then we can start making our square; X and Y are sex chromosomes, and the superscript denotes which fur allele is present, B = black and Y - yellow:
XBXB = black female XYXY = yellow female XBXY = tortoiseshell female
XBY = black male XYY = yellow male
Because the fur coat color is on the X chromosome, they will always be inherited together. Also note that the Y chromosome has "no allele" associated with it, because there are no genes on there that we care about for this problem. Now, it's just the matter of using the appropriate genotypes when setting up the square.
(a) XBXY x XYY = Females: 1/2 will be XBXY (torties) and 1/2 will be XYXY (yellow)
= Males: 1/2 will be XBY (black) and 1/2 will be XYY (yellow)
You would solve (b) the same way, just make sure you use the correct genotypes for your gametes, or you will be very sad!