Question: Problem 3. Suppose you have this structure: struct student { char name[50]; int ID; float marks [3] float avg_marks; Write a function that takes a

 Problem 3. Suppose you have this structure: struct student { char

Problem 3. Suppose you have this structure: struct student { char name[50]; int ID; float marks [3] float avg_marks; Write a function that takes a struct student argument. Assume that the passed structure contains the name, ID and marks of 3 different subject information. Have the function calculate the average marks for the avg marks member and return the new completed structure. Test your program with 5 inputs

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!