Programming in C:
For this lab you’ll write a program that may use a construction for college
courses. Make an array of courses. Print out details about the courses.
Data to print:
Print every class and its info within the following method:
Class: ID-HIST102, Identify-American Historical past, Credit-Three
Class: ID-CSCI112, Identify-Intro to C, Credit-Four
Print out details about the courses as a complete within the following method:
Complete class credit:
CSCI class credit:
The category construction must have:
Class identify (string), class id (string), credit (integer)
Use courses.txt to get the enter, however your program will learn the strings in from stdin. You
will use redirection to get the strings from the file. (./lab7
The final line within the file might be X’s for every merchandise on the road.
CSCI112 Programming with C Three CSCI127 Pleasure and Great thing about Knowledge Four CSCI132 Primary Knowledge Constructions and Algorithms Four CSCI338 Pc Science Concept Three CSCI215 Social and Moral Points in CS Three ARCH112 Introduction to Design Three COMX112 Interpersonal Abilities within the Office 1 HSTA101 American Historical past Four