Question: Using C++ write a c program to read details of invoices from a file and to output invoices which indicate the total cost of each
write a c program to read details of invoices from a file and to output invoices which indicate the total cost of each item and the to- tal cost of the invoice together with full details. Details of an invoice are: An invoice header with number of items on the invoice and the date of the invoice For each item an item code (6 digits) a name, a quantity and a unit cost. Thus a typical set of lines in the file for invoices might be: 3 2/12/2017 134276 Framis-R 8 7.35 125790 Framis-L 12 15.76 100086 Aglet 395 0.11 2 1/23/2017 135876 Wrench 12 22.50 543287 Henway 4 19.25 The above indicates that there are three items on the first invoice and its date is 2/12/2017, the first item has an item code of 134276 is a Framis-R an order quantity 8 and a unit price of $7.35. There of are two items on the next invoice, etc. reens 1-2 of 6
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
