Identify whether these programs are considered mandatory spending or discretionary spending.

a. Mandatory Spending:
b. Medicare
c. Social Security
d. Discretionary Spending:
e. foreign aid
f. Pell grants to college students
g. bridge upgrade funds