Growing up I never had a cat, but I had several dogs over the years. We got a puppy once but it had a problem of pooping in the floor. I figured I could train him not to do that. So, every time he pooped in the floor, I would stick his nose in it and toss him out the window.
In six months he was pooping in the floor, sticking his nose in it and jumping out the window.