Question: Write a C program that uses string processing functions to properly format a Comma Separated Values (csv) file of course information and store them into





Write a C program that uses string processing functions to properly format a Comma Separated Values (csv) file of course information and store them into an array of structures Once all data have been formatted and stored, your program should be able to a. Add new course b. Search for course information using either course name or course number or term as the search key c. Display all or any course data d. Save course information Assume that the CourseInfo structure has been defined as follows struct CourseInfo.{ int courseID; char courseName [40]; char courseCode [10]; char Term [61 int courseSections [3]; typedef struct CourseInfo courseInfo; //optional Example: Fields in the input file are comma separated as follows courseName,Faculty,Subject,Level,Section1,Section2,Section3,Semester,Year Content of a sample input file: programming,03,60,141,1,30,0,W,2015 algebra,03,62,102,2,0,0,S,2013 religion,08,98,938,1,30,90,W,2015 Corresponding field values in the array of structures (after formatting): CourselD CourseName PROGRAMMING CourseCode 0360-141 Term Sections 2 ALGEBRA 0362-102 S2013 RELIGION 0898-938 W2015 W2015 30 2 1 30 90
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
