Next: Exercises
Up: The switch statement
Previous: Multiple Choice Questions
>=70 `A'
60-69 `B'
50-59 `C'
40-49 `D'
30-39 `E'
<30 `F'
Could a switch statement be used to directly assign the appropriate grade given a percentage mark? If not how could you do this? Write a statement to carry out the assignment of grades.