CPS 125 

				Alexander Ferworn

					LAB 5

Purpose: This lab is to introduce you to the concepts of
     selection in C.  

You will have to read ahead in Chapter 5 to
learn the basics of selection.

You are to write a C program to calculate the tax to be
charged on an item of merchandise.  The tax to be charged depends
upon the major and minor product codes for each item.  
     
The program should input three integer values and one
floating point value: 

1) a 5 digit product number, 
2) its major product code between 1 and 8, 
3) its minor product code between 10 and 14, and 
4) its list price entered as a floating point number with two
decimal digits.
     
Data input will be via standard input redirected from one of
a series of one-line data files in the course directory
/home/t4a/cps125aa/lab5.  Once the program has been successfully
written and compiled it is to be executed several times for
testing, each time with a different data file: lab5.data1,
lab5.data2, etc.

The program should echo (to the screen) the four entered
data values, followed by the output of the total tax to be
charged (to 2 decimal places), all appropriately labelled.  The
tax is calculated based upon the major product code, as follows:

     major product codes 1-3 are taxed at 8%
     major product code 4 is taxed at 7%
     major product codes 5-8 are taxed at 15%

In addition, products with major product codes 1-3 have an
additional 5% tax (on the list price) if the minor product code
is 11 or 12.  Products with major product code 4 have an
additional 6% tax (on the list price) if the minor product code
is 14.