|
Programs
are usually written to solve real-world problems,
such as keeping track of employee records or simulating
the workings of a heating system. Although it is
possible to solve complex problems by using programs
written with only integers and characters, it is
far easier to grapple with large, complex problems
if you can create representations of the objects
that you are talking about. In other words, simulating
the workings of a heating system is easier if you
can create variables that represent rooms, heat
sensors, thermostats, and boilers. The closer these
variables correspond to reality, the easier it is
to write the program.
|