Chapter 4 Outcomes
Generalization


After completing this chapter and participating in class, you should be able to accomplish each of the following outcomes.

Knowledge Outcomes

  1. Define each of the key terms listed in the chart below.

  2. analogy keyboard input instruction
    get variable declaration of variable
    var white space return
    enter execution window initialization
    initialized variable echo of input prompt
    message sqrt div
    mod real number data type
    fraction mixed number integer part
    fraction part significant digits exponent
    exponent form of real number assignment statement constant
    comment documentation user friendly program
    disk file name syntax error debugging
    compile-time error run-time error  

  3. Explain how we can use an analogy to arrive at a general solution to problem.

  4. Describe the relationship between computer memory and software.

  5. Describe how to reserve space in the memory of a computer so that it can be used in a program. Specifically you should know how to correctly use var.

  6. Explain why variables must be declared prior to their use.

  7. Explain the type of numbers that can be stored in variables that are defined as int or real.

  8. State what white space is.

  9. Explain the purpose of the get statement. Describe what effect this instruction has on the program.

  10. Describe how values entered into the computer through the keyboard will be stored in memory.

  11. Explain the importance of prompting users for what they are to input and labelling output in an appropriate manner.

  12. Explain the difference between a / and div when performing division in a program.

  13. Explain the purpose and use of the sqrt function.

  14. Show how the computer stores real numbers as a combination of the significant digits and the exponent.

  15. Differentiate between the following terms:

  16. Explain what an assignment statement is. Include in your explanation the meaning of the := symbol.

  17. Describe the difference between a constant (const) and a variable (var).

  18. State what the functions round and mod will do in a program.

  19. Outline the 7 ways that programs can be made more understandable.

  20. Describe the purposes of comment lines found within a program.

  21. Explain the meaning of each of the following:

Skills Outcomes

  1. Create single and multiple variable declarations.

  2. Create a program that will prompt for input and have labels for output.

  3. Show how the computer stores real numbers as a combination of the significant digits and the exponent.

  4. Show how very large or very small numbers are represented in their exponent form (as expressed in Turing).

  5. Detect and correct a variety of common errors as outlined in the chapter. Be able to differentiate between syntax errors, debugging, compile-time errors, and run-time errors.