Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(60-141) Assignment #3 Deadline: Aug. 3rd, 2018 at 11:59pmm Write a C program that uses string processing functions to properly format a Comma Separated Values

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
(60-141) Assignment #3 Deadline: Aug. 3rd, 2018 at 11:59pmm 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 CourseInfot int courseID; char courseName [401 char courseCode [10 char Term [61 int courseSections [3] typedef struct CourseInfo courseInfo; lloptional 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 CourseNamePROGRAMMING ALGEBRA CourseCode0360-141 Term Sections RELIGION 0898-938 W2015 0362-102 S2013 W2015 30 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 xxx-Xxx. The first xox part indicates faculty code (xox) and subject code (xx). The second xx part indicates level. For example 0360-141

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems Design Implementation And Management

Authors: Peter Rob, Carlos Coronel

6th International Edition

061921323X, 978-0619213237

More Books

Students also viewed these Databases questions