Question: In C Programming how do I read data from '.txt' and '.csv' files and put this information together and produce one output file? The .txt
In C Programming how do I read data from '.txt' and '.csv' files and put this information together and produce one output file? The .txt input file contains client id, name, phone number, e-mail. In order to store this information, I need to create client data type that is capable of storing this information, with each bullet above constituting one field within the data type. You should provide structure pointer and prototypes (create, destroy, getters, setters) in .h file and structure definition and functions implementations in .c file. If you choose to provide more than one create, then be aware that there is no function overloading in C and each create has to have a slightly different name.
Second input .csv file contains name of shares and their price. In order to store this information, you need to create stocks data type that is capable of storing this information, with each bullet above constituting one field within the data type. You should provide structure definition and operations in .h file and functions implementations in .c file. For this ADT, there is no need to hide structure definition details from the end-user.
Few things to follow.
The program needs to follow object-oriented principles and use structures to define data types and their operations.
1) one ADT for client objects that is to follow ADT principles of information hiding o one ADT for stock objects that does NOT need to follow ADT principles of information hiding.
2) generic array ADT implementation (use the one provided in class and add the operations needed by your program); this ADT is to follow ADT principles of information hiding.
3) The generic list should be used to store a list of clients and a separate list of stocks
4) All ADTs need to abide by cohesion principle, which means that no ADT should rely on another ADT (e.g. not list functions inside a client ADT) The minimum number of files for your program is 7 files: 2 for generic list + 2 for client data type + 2 for stocks + 1 for a driver.
5) The driver should make the use of functions.
Data in .txt file
1212 Joseph Miller 206-555-1212 millers@comcast.net 1313 Beatrice Pizarro Ozuna 206-111-1111 bea@uw.edu 1314 Emily Price 206-111-5555 priceless@yahoo.com 1289
Data from .csv file.
Symbol,Current Price
AAAP,36.14
AAL,46.91
AAME,3.9
AAOI,37.27
AAON,34.35
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
