Prev | Current Page 187 | Next

Carl Reynolds and Paul Tymann

"Schaum's Outline of Principles of Computer Science"

The identifier university is different from University, and both are different from
UNIVERSITY.
While one is not required to do so, standard programming practice is to begin all class names with an
uppercase letter, and to begin all other names with a lowercase letter. Also, when an identifier consists of more
than one word, the usual practice is to use what??™s called ???camel case??? capitalization (it??™s ???humpy???). Here are
some example variable names:
highWindWarning
wonLostRecord
mothersMaidenName
BASIC CONTROL STRUCTURES
All programming languages provide ways to alter the sequence of instructions that actually get
executed when a program runs. This ability to select which logic to apply, or to choose an appropriate
number of times to cycle through a section of code, is what makes programs flexible enough to be
useful in the real world. Imagine a program to compute the average grades for students in a class,
but imagine that the program requires all classes to have exactly the same number of students, and
has no way to properly handle a missing grade! Such a rigid program would not be worth the trouble
to write.
if
The most common control structure for selecting a block of code to execute is the if statement.


Pages:
175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199
CSS Ninja remont warszawa tanie hotele nad morzem traktorki ogrodowe kolej transsyberyjska