1. Dress code is strictly enforced. Do I put "ed" on "enforce" because of "to be?" >>> Yes. It is passive voice, and the past participle of the verb is correct.
2. If not correct, can you tell me why? Do I put a comma at the end of "correct?" >>> Yes, because we would normally pause when we say this. Better: If it's not correct,... 3. The h