Programmer jobs....dress codes

My son did an internship for a large defense contractor last summer. He didn’t ask the dress code and the middle person coordinating it really wasn’t all that together. So not knowing how to dress we had him wear dress pants, button down and tie on his first day. The rest of the time he wore jeans.