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

Complete insertStudents and deleteStudents functions in the skeleton program. Th

ID: 3656142 • Letter: C

Question

Complete insertStudents and deleteStudents functions in the skeleton program. The output of the program should be like: sid=001,name=John sid=002,name=Joan sid=003,name=Jack sid=001,name=John sid=003,name=Jack #include "ex5.h" #include #include #include int main() { Snodeptr students; //Create the dummy node makenullStudents(&students); struct studentType student1,student2,student3; strcpy(student1.sid,"001"); strcpy(student1.sname,"John"); strcpy(student2.sid,"002"); strcpy(student2.sname,"Joan"); strcpy(student3.sid,"003"); strcpy(student3.sname,"Jack"); insertStudents(student1,students); insertStudents(student2,students); insertStudents(student3,students); printStudents(students); deleteStudents(student2,students); printStudents(students); return 0; } Snodeptr sAlloc(void) { return (Snodeptr) malloc(sizeof(struct snode)); } void makenullStudents(Snodeptr *students) { (*students)=sAlloc(); } void insertStudents(struct studentType x, Snodeptr students) { //How would i complete this } void deleteStudents(struct studentType x, Snodeptr students) { //How would i complete this } void printStudents(Snodeptr students) { int count=0; Snodeptr p=students; char ch; while((p->next)!=NULL){ printf("sid=%s,name=%s ",p->next->student.sid,p->next->student.sname); p=p->next; } }

Explanation / Answer

please repost as every thing has got mixed

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