Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please note all the functions required should be used K l P Write a C program that uses string processing functions to properly format a
Please note all the functions required should be used
Kl
P
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 [6]; 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 3 RELIGION 0898-938 W2015 W2015 30 2 1 30 90 Hints: 1- For formatting data, the following points are to be considered a. Course ID should be unique sequential integers starting from 1 (not from 0) b. The first letter of the course name must be a capital letter (upper case) c. Course Code should also be unique and store in the format as xxxx-xxx. The first xxxx part indicates faculty code (xx) and subject code (xx). The second xxx part indicates level. For example 0360-141Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started