Generate a text file named "invoice.txt" that contains an invoice number, the name of the item ordered, the quantity ordered, the unit price of the item, the extended price for the quantity ordered, the sales tax, and the total amount due. The output sent to the file should have the same format as the output that was displayed in homework 4.
Read from an input file named "invoice.dat" the invoice number, the name of the item (may be two or more words), the quantity, and the unit price.
For this program, there is no need to display the instructions and, of course, no need to get any input from the user. The only thing your program should send to the standard output stream is the message illustrated here:
You can create your input file using Quincy:
1. Open a new text file.
2. Save it as "invoice.dat".
3. Enter a set of data, one item per line. Here is an example:
09009 iPod Case 2 4.34
4. Save your data file and then close it.