A 40-year-old man is charged with attempting to entice a child into performing sexual acts in his apartment.