C Program:
Write a program that will read names, ids, dept names, and cgpа of some students from a file and will show the results. Consider that the name of the file is ‘input.csv’. It is just a text file where each line holds information of one student. Example format of two lines in the file is as follows: David Smith, 21, Computer Science, 3.98 Jone Smith, 11, Finance, 3.45 Read all information from the file, and print them on screen (one student per line). Your program should use the following structure to hold information of a student typedef struct char name [50]; int id; char dept [20]; double cgpa; } student; Show transcribed image text Write a program that will read names, ids, dept names, and cgpа of some students from a file and will show the results. Consider that the name of the file is ‘input.csv’. It is just a text file where each line holds information of one student. Example format of two lines in the file is as follows: David Smith, 21, Computer Science, 3.98 Jone Smith, 11, Finance, 3.45 Read all information from the file, and print them on screen (one student per line). Your program should use the following structure to hold information of a student typedef struct char name [50]; int id; char dept [20]; double cgpa; } student;
Expert Answer
Answer to Write a program that will read names, ids, dept names, and cgpа of some students from a file and will show the results….