CS 1321 (Principles of Algorithm Design II):
Homework #1

Assigned:
January 14, 2000
Due:
January 21, 2000, at the beginning of class
Credit:
20 points.

Overview

Write a program to compute the correct state sales tax, given a list of item prices. For example, a retailer selling two items each costing $3.45 and one item costing $123.45 could compute the sales tax by typing
    salesTax salesTaxRates TX 3.45 3.45 123.45
into any shell. Here, The program should print 8.15, which is the sales tax due. That is,
    (3.45 + 3.45 + 123.45)*6.25% = 8.146875,
which is then rounded to the closest penny.

Details

What to turn in

Submit your source code as described in the guidelines for programming assignments. For this assignment: