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

Suppose you have this structure: struct student { }; char name[50]; int

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 Activate Go to Setting

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

include stdio h struct student char name50 int ID float marks3 float avgmarks st... View full answer

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 Programming Questions!