Cell representation. Al is oxidised (anode, written on the left) and Cd2+ is reduced (cathode, on the right):
Al(s)∣Al3+(0.01 M)∣∣Cd2+(0.1 M)∣Cd(s)

Electrons transferred. 2Al→2Al3++6e− and 3Cd2++6e−→3Cd, so n=6.
Nernst equation:
Ecell=Ecell∘−n0.059log[Cd2+]3[Al3+]2
Ecell=1.260−60.059log(0.1)3(0.01)2=1.260−60.059log10−310−4
Ecell=1.260−60.059log10−1=1.260−60.059(−1)
Ecell=1.260+0.0098=1.2698 V
Answer: Ecell=1.27 V.