Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

int getcoursesinfo(struct STUDENT s[], int studentnum) { int i,j,subject=2; for(i=0;i

int getcoursesinfo(struct STUDENT s[], int studentnum) {

int i,j,subject=2;

for(i=0;i

/* printf("Enter your course code "); scanf("%s",&s[j].coursecode);

printf("Enter your course name "); scanf("%s",&s[j].coursename);

printf("Enter credit hours "); scanf("%d",&s[j].credithours);

printf("Enter number of taking "); scanf("%d",&s[j].numtaking);

printf("Enter your semester "); scanf("%s",&s[j].semester);

printf("Enter year of taking "); scanf("%d",&s[j].yearoftaking);

printf("Enter the doctor name "); scanf("%s",&s[j].dr);

printf("Enter gta section name "); scanf("%s",&s[j].gta);

printf("Enter gta lab name "); scanf("%s",&s[j].gtalab);

printf("Enter your seventh mark "); scanf("%d",&s[j].seventhmark);

printf("Enter your twelve mark "); scanf("%d",&s[j].twelvemark);

printf("Enter your final exame "); scanf("%d",&s[j].finalexam);

printf("Enter sum of marks "); scanf("%d",&s[j].sum);

printf("Enter your grades "); scanf("%s",&s[j].grade);

printf("Enter your days of absence "); scanf("%d",&s[j].absence);*/

} } } int printcourseinfo(struct STUDENT s[],int studentnum) { int i,j,subject=2; for(i=0;i

for(j=0;j

printf("Total credit is:%d ",s[j].totalcredit); printf("Course code is:%s ",s[j].coursecode); printf("course Name is:%s ",s[j].coursename); printf("Student credit hours is: %d ",s[j].credithours); printf("Number of taking courses is: %d ",s[j].numtaking); printf("Student semester is: %s ",s[j].semester); printf("Year of taking courses is:%d ",s[j].yearoftaking); printf("Doctor name is: %s ",s[j].dr); printf("GTA section name is: %s ",s[j].gta); printf("GTA lab name is: %s ",s[j].gtalab); printf("Student seventh mark is:%d ",s[j].seventhmark); printf("Student twelve mark is:%d ",s[j].twelvemark); printf("Student final mark is:%d ",s[j].finalexam); printf("Student sum of total mark is:%d ",s[j].sum); printf("Student grade is: %s ",s[j].grade); printf("Student days of absence is: %d ",s[j].absence);*/ } } } can anyone help me find the error

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Illuminated

Authors: Catherine M. Ricardo

1st Edition

0763733148, 978-0763733148

More Books

Students also viewed these Databases questions