I agree with McMurdo, either go all out and look your best, or humor the teacher and wear the pants. In a real-world court situation you would be expected to look your best (which doesn't of course mean tuxedo) wearing a suit and tie would be generally acceptable. What you are wearing in your picture is, IMHO, fine for everyday wear, but not quite good enough for a court appearance. Just me 2 cents worth, take it for what it's worth. BTW good luck in your class.