I am a begginer and I need to Implement a function tipPercentage for the given ratings:
if rating is Terrible or Poor, then returns 3.
If rating is good or great, then returns,10
excellent, 20
if rating is none of the above, then returns 0.
Sample case 0 Sample input for Custom Testing sample output good so the tip percentage is 10
sample case 1 Sample input for Custom Testing Don't liked sample output dont liked so the tip percentage is 0
What I have tried:
I dont know how to start. I began this course today and this is in my final test but I never studied like this example, were simpler.