/* Task 4 */
int getCourseName( int courseNum, char cNameFound[MAX_STR], char courseName[NUMBER_COURSES][MAX_STR], int courseID[NUMBER_COURSES]) {
/* This function, takes a course number as input, searches for its course name and stores it in
a string parameter (e.g. cNameFound). It returns 1 if the course is found, 0 otherwise. For
example, if the course number is 1300, it will return 1 and store “Programming” in
cNameFound*/
// initialize a var to check if a course is found
int courseFound = 0; ```
For reference, below are the coursenames im dealing with, and the course numbers:
Programming
Introductory Programming
Object Oriented Programming
Data Structures
Software Systems Development and Integration
Intro to Databases
Analysis and design of Algorithms
Advanced OO
Data Mining
Cyber Security
1300
1500
2430
2520
2750
3530
3490
4450
4600
4750 ```