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

For this project, you are writing a program to read a file of records, extract s

ID: 3938981 • Letter: F

Question

For this project, you are writing a program to read a file of records, extract some fields into a VLA’s, sort them using insertion sort, search for a user-specified target using binary search, and print out the result. The program should open the input file “grades.csv”, a comma separate value, where each line contains 4 integers and 1 character separated by commas. These objects represent a student’s ID, score of Exam 1, score of Exam 2, score of Exam 3, and a grade letter based on the average of the three scores. A student ID can be any 6-digit integral value, i.e., it is in range from 100000 to 999999, both inclusive. The scores are from 0 to 100, and a grade letter is either ’A’, ’B’, ’C’, ’D’, or ’F’. We can assume the input file is non-empty, but, again, we do NOT know the number of lines in grades.csv C language

Explanation / Answer

#HEADER FILES void recordcheck(char grade[], char string) { int studnt_ID; int* pInt = &studnt_ID; char letter; printf("Enter studnt_ID [-1 to quit]") scanf("%9[0123456789]", studnt_ID) while (studnt_ID != -1) { if (studnt_ID > 99999 && Studnt_ID < 1000000) { sscanf("%p, %d, %c", &pInt, student_ID, letter); } else if { printf("Enter studnt_ID") } exit; } }
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote