Some states have some of the nation’s highest concentrations of computer science students, while others have the lowest.
In the last year, students in states with the most students in computer science received an average of about one-third of their college credit in the field.
For the rest of the country, the average is around one-quarter.
In contrast, students from states with fewer computer science majors had an average credit of less than one-half of their degree in computer programming.
What’s more, the numbers for computer science are generally lower for low-income students than for wealthier students, according to the National Center for Education Statistics.
In the past decade, the number of students in the United States enrolled in computer-related majors has more than doubled.
But for students from low- and moderate-income backgrounds, the share of their education going to computer science has decreased over the past three decades, according the report.
In 2000, more than 60 percent of students from high-income families took computer science.
Today, that share is about 35 percent.
The percentage of students who received credit for computer programming has increased by about 20 percent over the same time period.
Students who did not receive credit also were less likely to complete their degrees.
The number of graduates with a bachelor’s degree has decreased by about a third, from 1.4 million in 2000 to 929,000 in 2015.
But the percentage of graduates who completed their degrees rose to 64 percent in 2015 from 50 percent in 2000.
And for students who have no computer-based work experience, the percentage who took credit for their degree has risen from 25 percent in 2016 to 33 percent in 2020.
Students from low and moderate income families are also less likely than their more affluent peers to earn a bachelor of arts degree, which generally requires at least a bachelor degree.
Overall, the report says that the percentage with computer science degrees has been falling over the last decade.
But it says that more students in low and low-middle income families continue to enroll in computer engineering and computer science programs.
And students from those backgrounds are more likely than those from more affluent families to take advanced-level computer science courses.
For students from lower-income parents, the data show that the graduation rate has been increasing, as is the percentage from families with incomes below $35,000.
But this data is not complete, and the report does not show how high the graduation rates for these students have been for students in more affluent households.
A college degree is not for everyone, but a computer-oriented degree is, according a 2015 report by the National Association of Scholars.
Computer-related work experience is a good way to prepare students for college and career, according Richard A. Cohen, the association’s executive director.
The work experience should include work in industry and other jobs, Cohen said.
“It’s not necessarily a guarantee of getting into the workplace, but it’s a good indication of what type of work you’ll do in the future.”
For more college-related news, visit NBCNews.com/college.
Follow NBC News senior national correspondent Jeff Stein on Twitter: @JeffSteinNBC.