Problem
1. Create a text file to get data for purchasing shares.
2. Create a text file to write total_paid into the file
3. Create a text file to read data when shares were sold.
4. Create a text file to write total received
5. Create a text file to write the loss and profit .
Use main function in C++ to accomplish these tasks.
The response should include a reference list. Double-space, using Times New Roman 12 pnt font, one-inch margins, and APA style of writing and citations.