I have a data set in which I have students' grades for their 30 subjects aprox. These are letter grades like A*, A, B,... I want to convert them into their equivalent numerical values like A*= 95, A=90, B=80, and so on. Can someone guide me how can I do that using a single command instead of using the following command for every variable and grade?

Code:
replace Accounting ="96" if Accounting == "A*"
Secondly, do I also need to convert the type of the variable from string to integer?