CSC 211

Spring, 2003

Assignment 4

Writing short programs

Due: 11:59pm, Friday, May 2nd

Purpose: This assignment asks you to write two programs.

Write a program called InvoiceSingleItem that does the following:

For example, if the user enters 20 for quantity and 6.00 for unit cost, the program will compute a net invoice amount of $120.00 (which is 20 times 6.00) and a gross invoice amount of $126.00 ($120.00 plus 5 percent).  Name the file for the program InvoiceSingleItem.java

Write a program called InvoiceMultipleItems that does the following:

For example, if the user enters:

the program will compute a net invoice amount of $275.00 (120.00 + 50.00 + 105.00) and a gross invoice amount of $288.75 ($275.00 plus 5 percent).  Name the file for the program InvoiceMultipleItems.java

What to submit: Through COL, submit a zip file containing both the InvoiceSingleItem.java file and the InvoiceMultipleItems.java file.