GPA calculator:
Assume the user has a bunch of courses they took, and need tocalculate the overall GPA.
We will need to get the grade and number of units for eachcourse.
It is not ideal to ask how many courses they took, as they have tomanually count their courses. Programming is about automation andnot manual work.
We will use a while loop and after getting the data of onecourse, we will ask if they have more courses to enter. If theyanswer ‘Yes’, or ‘y’ we continue. Anything else, we will stop andshow the final GPA.
This requires us to write code that follows this logic:
1.We
PayPal Gateway not configured
PayPal Gateway not configured