Scott Grissom
School of Computing & Info Systems
Grand Valley State University
picture

Homework: Ch 2

Preparation

Do the following before completing this assignment:

  • Read chapter 2

Objectives

After completing this lab, you should be able to:

  • write assignment statements
  • write conditional statements

Exercises

Complete the following questions from the Practice Problems. This assignment must be typed. Provide the original question followed by the answer. Use a mono space font such as Geneva for any code you write. For example:

1) Given a rectangle with sides of length width and height, calculate the area.

area = width * height;
Answer each of the following questions:
  • Assignments: 8, 9, 11,14, and 23
  • Conditional Statements: 2, 3, 5, 6, 8

Grading Criteria

This homework is equivalent to a a quiz and is worth a possible 100 points.