Question: in c Greatee proeram that valldates a CSV file based on a header line at the top of the file, The heador fire will represent
Greatee proeram that valldates a CSV file based on a header line at the top of the file, The heador fire will represent the attibute names and the number of attilbutes. For example, If the header tine is (iD, P.WE, PRTCE, QU.WTR? youknow that there are 4 attrlbutes. All subsequent lines of date must finelude 4. attibutes to be considered valld. Requirements - (25 points) Prompt the user to enter a fille name. - (2.5 points) Check your file pointer to make sure the file exists. - (5 points) If the file passes valldation, print the name of the file and a message indlicating that fit is valfd. - (10 points) if the file does not pass valldation, print each line that is not valid. - (10 points) The valldation code should be Implemented as a separate function. - Include a corresponding header file that contains any cincludC) statements, _ statements, and function declarations. - Save your code as cs._chick._. and c5V_cieck.h
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
