4 edited tags
| link
3 fixed tagging
| link
2 added 289 characters in body
source | link

WhatThe only other motivating example I lackcan think of is othera graduated tax calculator (based on the US Federal Income Tax), where cascades can be a nice way to approach the problem.

These examples are fine, but it's not enough to get the lightbulb to flick on for most of my students. What I need is a few more motivating examples that really show students why switch/case is useful. What other examples show this clearly?

What I lack is other motivating examples that really show students why switch/case is useful. What other examples show this clearly?

The only other motivating example I can think of is a graduated tax calculator (based on the US Federal Income Tax), where cascades can be a nice way to approach the problem.

These examples are fine, but it's not enough to get the lightbulb to flick on for most of my students. What I need is a few more motivating examples that really show students why switch/case is useful. What other examples show this clearly?

1
source | link