V
VisionSet
I'm after some basic scenarios for teaching java.
Both from an OO perspective and from a structured programming perspective,
separately for simple scenarios.
For starters:
a problem that will be ideally solved by a simple loop, one using a
conditional and one using both, using just primitives.
and for OO something that lends itself to writing a simple class with one
attribute and a getter for that attribute.
I know this is simple stuff and my imagination should be up to it, but
actually as I've found it is extraordinarily difficult to come up with good
examples don't appear overly contrived and don't invite too many distracting
tangents.
Naturally I don't need the code but some resource that provides simple
problems such as these from the 1st steps in java, upto all the structured
programming capabilities and moderate OO ie introducing poymorphism.
Resources or your suggestions greatfully received
Both from an OO perspective and from a structured programming perspective,
separately for simple scenarios.
For starters:
a problem that will be ideally solved by a simple loop, one using a
conditional and one using both, using just primitives.
and for OO something that lends itself to writing a simple class with one
attribute and a getter for that attribute.
I know this is simple stuff and my imagination should be up to it, but
actually as I've found it is extraordinarily difficult to come up with good
examples don't appear overly contrived and don't invite too many distracting
tangents.
Naturally I don't need the code but some resource that provides simple
problems such as these from the 1st steps in java, upto all the structured
programming capabilities and moderate OO ie introducing poymorphism.
Resources or your suggestions greatfully received