Making an invoice statement in C++
Hey guys,
I'm kind of in a bit of trouble. I have to make a program in C++ (invoice.exe) that needs to calculate the total list of purchased items. Each purchased item needs to contain the product name, price and the quantity. I can do that, but the next part gets confusing, well atleast for me.
I have to make a purchase.dat that contains the item information in a plain text file that the program (invoice.exe) can generate info from, and then it needs to provide an output statement (statement.txt). So I think that it will be like invoice.exe < purchase.dat > statement.txt.
So basically the statement.txt needs to look like:
Pelikan Invoice
Product name Quantity Price Cost
DVD Player 2 24.95 49.90
LCD TV 1 599 599
My question is, how do I go into making this program? I know the basics of C++, but this is abit too difficult for me. Any help is appreciated.