Discuss rules for naming variables.
What will be an ideal response?
Answers will vary. Variable names must be one word. The name can contain letters, digits, hyphens, underscores, or any other characters you choose, with the exception of spaces. No programming language allows spaces within a variable name. Variable names should have some appropriate meaning. You might think you will remember how you intended to use a cryptic variable name within a program, but several months or years later when a program requires changes, you and your fellow programmers will appreciate clear, descriptive variable names. Some programmers have fun by naming variables after friends or creating puns with the names, but such behavior is unprofessional and marks those programmers as amateurs.
You might also like to view...
What is the value returned from the expression stateName.Substring(1,1) when stateName contains "North Dakota"?
A. N B. o C. t D. a
To close the file in the accompanying figure, click the tab, shown in Item 1.
Answer the following statement true (T) or false (F)