Computer Science 121
Assignment 5
Due: October 29, 2002

For this assignment you are to write a program using a StringTokenizer to read the data.  The data should consist of a computer's name, price and shipping charge.  This should be read in all on the same line, separated by spaces.  Use this data to calculate the sales tax and the total bill.  When done, display the final bill.

Use the Body Mass Index Example to see how to use a StringTokenizer.  Read the data in one method and display it in another.  Also include a method to compute the sales tax.  Use the value of $0.0825 for the sales tax rate.  This method should neither read in data nor print anything out.  Instead it should get the price from a parameter and return the value of the tax.

When done, display the data on the screen.  This should be in the form of a bill that shows the name, price, tax, shipping charge and total.  Make sure that each number is labeled.  Format your output using the method, decimals, from the Reader class.

You may also use the Reader class to read in strings and doubles.  Simply include it at the end of your program.  You should have no more than one public class in your program, and it should have the same name as the java file.