I am attempting to calculate a grade based off of two variables with given values, and set it to a new variable in my shell script. For example,
x=25
y=75
Using the arithmetic expansion operator I have made many attempts to do so such as:
grade=$(($x*($y / 100)))
grade=$(($x * ($y / 100)))
y=$(($y / 100))
grade=$(($x*$y))
& many more desperate attempts, but none seem to work. Any tips as to what I am missing/not understanding? I have looked at several examples/other similar questions but they do not match my sitaution.
Thank you.