Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Student data is organized into records and fields.In addition to the column head

ID: 3660868 • Letter: S

Question

Student data is organized into records and fields.In addition to the column headings,there is a record for each student,and the fields are: Stud ID, Last name ,First name,Quiz 1,Quiz 2,Quiz 3,Quiz 4 and Final.Stud ID is a unique give digit number.Last and First names are strings with no imbedded blanks. Quiz and final grades range from 50 to 100.A "0" grades on a quiz signifies that the student did not take the quiz. The grading scheme is as fallow: On the four quizzes,one lowest grade is dropped and highest grade is doubled, and the Final grade is doubled,and the Final count as two quizzes.Each student is assumed to have taken the Final exam.The average numeric grades for each student is computed based on these assumptions. Letter grades are them assigned using A+,A,A-,B+,B,B-,C+,C,C-,D+,D,D- and F,according to standard scheme(96^2/3 and above is in a A,90 and above is an A-,86^2/3 and above is a b+,etc). A Grade Report is them generated including the sequence number,all input data, Average and letter Grade for each student.An additional Summary is also generated containing the Average for each of the quizzes ,the final exam and the computed numeric average. After generating the report,you should implement a second program stage where the user should be able to inquire about any individual student's final numeric and letter grades based on his/her ID,as illustrated bellow. Note that non-existent records should be flagged as such."999" is used as the termination flag for this stage. ((YOU MUST USE AT LEAST ONE FUNCTION WHOSE PROTOTYPE IS AS GIVEN: void avgGrd( int,int,int,int double&, string&)(Do not use arrays please))

Explanation / Answer

#include #include #include #include #include #include using namespace std; int main() { FILE *fp, *ft; char another, choice; struct student { char first_name[50], last_name[50]; char course[100]; int section; }; struct student e; char xfirst_name[50], xlast_name[50]; long int recsize; fp=fopen("users.txt","rb+"); if (fp == NULL) { fp = fopen("users.txt","wb+"); if (fp==NULL) { puts("Cannot open file"); return 0; } } recsize = sizeof(e); while(1) { system("cls"); cout