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:

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:

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.