Rubayet A.

asked • 05/18/21

computer science

Write a program that will read names, ids, dept names, and cgpa 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: Moinul Islam, 21, Computer Science, 3.98 Abu Hena, 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;

1 Expert Answer

By:

Patrick B. answered • 05/18/21

Tutor
4.7 (31)

Math and computer tutor/teacher

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.