TRY THESE CHALLENGES
C1: Replace the question marks with "greater than or equal to" then run the program.
C2: Remove the comment (#) at the start of the line 19 and add a test to see if the score is greater than or equal to 80. If so, the grade should be equal to "B".
Remember to test with normal, extreme and invalid data!
C3: Repeat for 70 or more marks (B) and 60 or more (C), Remember to test!
C4: Add a final "else" line that will make the grade a "U",
Remember you don't need a rule with an "else" statement
C1: Replace the question marks with "greater than or equal to" then run the program.
C2: Remove the comment (#) at the start of the line 19 and add a test to see if the score is greater than or equal to 80. If so, the grade should be equal to "B".
Remember to test with normal, extreme and invalid data!
C3: Repeat for 70 or more marks (B) and 60 or more (C), Remember to test!
C4: Add a final "else" line that will make the grade a "U",
Remember you don't need a rule with an "else" statement
- What have you learnt?
- What has challenged you and why?
- What do you want to do know?