More money helps to a point, but what these young people need more than anything is appropriate role models (engineers, scientists, etc). Yes, I know, easier said than done...
But there is a very real fact that certain peoples don't have access to computers. My wife grew up in a poor area, and they did not have a computer in their home until she was 16 when got a laptop as a gift.
I grew up poor, but as a foreigner with no real contact with others so I stayed mostly at home. My father used to love buying old cheap computers at garage sales, so I would mix and match hardware from the old computers and I managed to learn a lot.
Both of us grew up poor, but I grew up to be a programmer because I had plenty of access to computers while growing up. It was always natural to me, and it was hard for her.
Neither of us idolized gold chains or expensive shoes. I think what you're saying is a harmful and frankly, racist stereotype. Just because a family buys a $200 pair of shoes for their child on Christmas, doesn't mean that means the child shouldn't have access to computers. Rich families will give their kids expensive things as well as give access to computers.
I worked for a bit with a Cuban immigrant who studied CS to a high level (post bachelors) without a computer. As in the university and the whole of society didn't have access to computers because you know....communism. He correctly retorted at my shock of "how can you do CS without a computer" question to say the least.
source: Cuban family and emigres. Please don't talk to me about communism without reliable data.
Are you referring to the country's history of slavery, segregation and mass incarceration? Because I'd agree that "the environment" that black people are raised in is definitely shaped by racism, past and present. That you acknowledge its existence as a footnote makes me think you're underestimating the impact of 400 years of treating people as sub-human.
People tend to be heavily influenced by their environment as they grow up. And if the majority of your peers see X as being "cool", that's what a lot of people will try to achieve.
For example, during high school years, the "popular kids" are the jocks who play sports, not a geek who plays with code all day (although this has shifted a lot lately). If you look at it this way, the guys who go on to play an the NBA do it not because they are "underprivileged" and racially profiled to be kicked out of studying, but because that IS the valuable route they want to choose. Likewise, the current state of the music industry is heavily influenced by black culture. You could say pretty much everything is black culture influenced, from rap to r&b to Jazz to dance music. So a lot of black kids look up to those artists and creative people, and they strive to excel in those areas. I think that's great.
There's a reason why fighting arcade games and strategy games like Starcraft, WoW, etc. are dominated by Korean pro gamers. Nobody said blacks shouldn't play Starcraft or Tekken, nobody told white guys to stop playing. Koreans were simply heavily socially incentivized to be good at it.
Same goes for football (soccer). Nobody said Brazilians are the only privileged race on earth who are allowed to play football. They were just heavily socially incentivized to do so because that's what's considered of value.
Once you stop thinking as a victim and start thinking more positively, there are many explanations to the "mystery" you just can't seem to figure out.
p.s.
Just to be clear, I am not denying that racism exists. I would however like to point out that the people who keep blaming everything to racism are the ones who are actually subliminally racists.