Brand new C programmer here.
I'm working on a program, and am about 75% done...stumped on 3 things though.
1. One of the fields in my structure is student GPA. I need to calculate all of the GPA's to return a class average. What would be the best way to determine the number of students, if the number to be divided by is not known when the program is started (works off user input, and there is not a predetermined number of inputs...could be 5, could be 50).
2. What is the best way to remove a record from memory, based on "Last Name" as the key field.
3. One of the inputs I'm receiving from the user is "Number of children". I've got a get_student_info function that I'm using to get input from the user...I'm not exactly sure of the syntax I would need to set up an "if" structure to check the number of children field to also prompt the user for child name & age if they respond 1 or more to the number.
Any help would be appreciated.