Assignment

Read chapter 3 in Concepts in Computing, and answer the following questions.

  1. What are the three fundamental programming logic structures? Describe each.
  2. What is pseudocode? Why is it advantageous to use pseudocode?
  3. Write pseudocode for "Monogrammer," a program that prompts the user to enter first, middle, and last name, then prints out the user's initials.
  4. Use the flowchart conventions described in section 3.2 to diagram the logic of your pseudocode from question 3.
  5. Write pseudocode for "Calculator," a program that reads three values from the user: the first and third are integers, and the second is one of { +, -, *, / }. The program should respond by printing out the resulting calculation (e.g., if the user enters the values 5, +, 3; the program responds by printing out 8).
  6. Use the flowchart conventions described in section 3.2 to diagram the logic of your pseudocode from question 5.
Copyright © 1999-2008| Gene Rohrbaugh | Privacy Statement