I often wondered why it's still customary to guess and announce a person's gender out loud in order to be polite have a nice day verse have. A nice day sir or ma'am in today's gender confused society. It would make so much more sense to just leave off the gender. It doesn't sound any less formal to me.
And it's certainly a lot less formal if you're wrong.