Solution Review: Letter Grade to GPA
In this lesson, we'll look at the explanation of the last challenge.
We'll cover the following...
We'll cover the following...
Let’s look at the solution first before jumping into the explanation:
Explanation
We can get the passed parameter by using @_[0] and by using if elsif else statement, we can compare the passed parameter and return the GPA accordingly.