'How to calculate Age Group wise US Population Data in Percentage

I came across many Data Sets also Many Data Sets have constant age groups but I need below data table as output. You can consider any data set

Age_Group Percentage Population
60 Above Years 20 74629409
50 - 59 Years 10 42354542
40 - 49 Years 10 40319374
30 - 39 Years 15 44168826
19 - 29 Years 15 45141956
0 - 18 Years 30 81625416
r


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source