Wow, I feel very little connection to programming and math. I've always sucked at math (well I may have passed my classes but in my mind I still didn't get it). I still suck at math and programming has rarely helped me with math.
I also find people connecting them frustrating. A very large percentage of programming needs almost no math beyond basic arithmetic. 99% of websites and web services didn't need any math to get their MVP out. Now I know people will argue maybe they are using math in their analytics or some other non MVP feature but I'd argue those features were added later by a few experts and that the MVP and the majority of code required no little to no math.
Heck, looking at all the apps running on my laptop right now. Finder (no math), Chrome (no math except video/audio encoder/decoder, canvas api, a few CSS effects), System Prefs (no math), Terminal (no math), Preview (no math except image scalers and vector drawing). TextEdit (no math), VSCode (no math), iTunes (no math except audio decompression/compression).
My point being that lots of people say to be good a programming you need to be good at math. I vehemently disagree and I believe saying and repeating that provably false statement scares away lots and lots of would be developers.
I do agree that if a person is motivated to do something related to programming and that something requires math they might be motivated to learn the math. A good example might be drawing 3D graphics. But, I feel that's changed significantly recently because the average computer is fast enough and because there are so many existing and easy to use solutions that the majority of devs can get away with an existing solution without learning the math. They grab a library, give it data, and it draws it and I'd argue the majority of people are happy at that level just as I'm happy not to really care how my car works, I just drive it.
The number of people who want to go deeper and write their own library is 1/20th the number of people that just want to use the library. I think this is derivable from looking at the activity of forums. The library forums have 20x the traffic as the low-level forums.
As a teacher though, I'm guessing you could guide the students to write their own X where X requires math. Maybe have them write some simple signed distance field fragment shader. Or maybe have them draw some simple 3D without a library. Lots of simple 2D examples like simulate random particles with gravity or even a simple 2d platformer jump cycle (not sure that's really math)