The initial letter is uppercase multiple word

This preview shows page 21 - 24 out of 77 pages.

the initial letter is uppercase, multiple-word variable names are run together, and each new word within the variable name begins with an uppercase letter. A prompt is a message that is displayed on a monitor to ask the user for a response and perhaps explain how that response should be formatted. Real numbers are floating-point numbers. Right-associativity and right-to-left associativity describe operators that evaluate the expression to the right first. Rules of precedence dictate the order in which operations in the same statement are carried out. An rvalue is an operand to the right of an assignment operator. A selection structure contains a decision in which the logic can break in one of two paths. Self-documenting programs are those that contain meaningful data, method, and class names that describe their purposes. A sequence structure contains steps that execute in order with no option of branching to skip or repeat any of the tasks. A string constant (or literal string constant) is a specific group of characters enclosed within quotation marks. A string variable can hold text that includes letters, digits, and special characters such as punctuation marks. A structure is a basic unit of programming logic. A temporary variable (or a work variable) is a working variable that you use to hold intermediate results during a program’s execution.
Study Guide Page 20of 75Damelin © Type casting is the act of converting data from one type to another. An unnamed constant is a literal numeric or string value. A variable is a named memory location with contents that can change. A variable declaration is a statement that provides a data type and identifier for a variable. STUDY UNIT 3: MAKING DECISIONS Introduction Module 3 presents the fundamentals of decision making. The module begins with a discussion of Boolean expressions and their role in making comparisons. This is followed by an introduction to the relational comparison operators used in object-oriented programming. The logic guiding the AND and OR operators follows. Truth tables are introduced. The process of combining AND and OR operators is presented, along with some examples of common logic errors. Next, a discussion of data value ranges is presented. The module concludes with a brief discussion of precedence when combining the AND and OR operators. Module Objectives In this Module, your students will learn about: Evaluating Boolean expressions Relational comparison operators AND logic OR logic Making selections within ranges Precedence when combining AND and OR selections Evaluating Boolean expressions One reason why people think computers are smart lays in a computer its ability to make decisions. The selection structure (also called the decision structure) involved in such programs is not new to youit’s one of the basic structures of structured programming.
Study Guide Page 21of 75Damelin ©

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture