## CS 1401 Assignment #2

**Date Assigned:**Tuesday, September 5, or Wednesday, September 6,
2006.
**Due Date:** Monday, September 11, 2006, or Tuesday, September 12,
before the beginning of your lab section.

**Objective:** The main objective of this assignment is to practice
using input, output,
arithmetic operations, and operations with strings.

**Programming assignment:**
At the ACM meeting, in addition to
pizza, organizers decided to sell a wonderful Delicious Juice. Since
they ran out of containers, they had to borrow boxes of
different size that a nearby El Paso High School used to teach
geometry. The volume of each box is the product of its height,
width, and depth. The juice costs $0.10 per cubic inch. Your program
should compute the amount that each student will be charged for the juice.
Specifically, your program
should:

- ask the student for his or her name;
- ask the student for the height of his or her box;
- ask the student for the width of his or her box;
- ask the student for the depth of his or her box;
- print a bill with the student's name and the cost of the juice.

**Example:** Suppose that Luis Garcia got a box of 3 inches height,
2 inches width, and 1.5 inches depth. He should be then charged
$0.10 x 3 x 2 x 1.5 =
$0.90.

*Comments:*

- do not worry about objects yet, just make it one main object;
- make variable names meaningful, so that it will be easy to read your
program;
- add comments, so it will be clear what different statements do;
- add indentation as necessary, to make your program clearer;
- make a cost per square inch a constant (to make it easier to
change later).

**Homework assignment:** on a separate sheet of paper, solve Ex. 2
(p. 100), Ex. 10 (p. 102), and Ex. 12 (p. 103).

**Deliverables:** as instructed by your TA.