Question: students.h students.c c programming and please use the functions given only. thank you In this homework, you will do some simple operations using structs Download

 students.h students.c c programming and please use the functions given only.

thank you In this homework, you will do some simple operations using

students.h

structs Download the hw5 students.c, students.h, and students.db files from HuskyCT and

students.c

put them in your working directory. This is the code in hws.c

c programming and please use the functions given only. thank you

In this homework, you will do some simple operations using structs Download the hw5 students.c, students.h, and students.db files from HuskyCT and put them in your working directory. This is the code in hws.c that you will need to complete #1nclude "students .h" tinc lude #include int main) struct student *students; int num students; students read students( "students.db", &num students); if (studentsNULL) ( printf ("Student database does not existIn"): exit (-1) The students.db file contains a database of students with their names and grades. Ihave provided the read students function for you to read the contents of the file and put it in an array of struct student called students. You can look in students.h tosep the definition of struct student. Also, within struct student is another array of structs-this one is an array of struct grade. The definition of struct grade a course name, the semester and year that the course was taken, and a grade. Note, that the semester and grade are both enums. this home work is to complete the main function such that it iterates over the students ades for that student, and Your task for array, and for each student, print the student's name, and print out all the gr then calculate and print out the student's GPA Assume that all D-1, F-0. The output for each student should look something like the following ourses are 3 credits, and A-4, 8-3, C-2, Name: John Doe ID: 1328 ENGR1000 PHIL1104 CHEM1127 ENGL1010 GPA 3.25 Fall 2014 Fall 2014 Fall 2014 Spring 2015 A. c In this homework, you will do some simple operations using structs Download the hw5 students.c, students.h, and students.db files from HuskyCT and put them in your working directory. This is the code in hws.c that you will need to complete #1nclude "students .h" tinc lude #include int main) struct student *students; int num students; students read students( "students.db", &num students); if (studentsNULL) ( printf ("Student database does not existIn"): exit (-1) The students.db file contains a database of students with their names and grades. Ihave provided the read students function for you to read the contents of the file and put it in an array of struct student called students. You can look in students.h tosep the definition of struct student. Also, within struct student is another array of structs-this one is an array of struct grade. The definition of struct grade a course name, the semester and year that the course was taken, and a grade. Note, that the semester and grade are both enums. this home work is to complete the main function such that it iterates over the students ades for that student, and Your task for array, and for each student, print the student's name, and print out all the gr then calculate and print out the student's GPA Assume that all D-1, F-0. The output for each student should look something like the following ourses are 3 credits, and A-4, 8-3, C-2, Name: John Doe ID: 1328 ENGR1000 PHIL1104 CHEM1127 ENGL1010 GPA 3.25 Fall 2014 Fall 2014 Fall 2014 Spring 2015 A. c

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!