in Education by
a program to keep a track of students record and their marks according to the performance in the exam.. Select the correct answer from above options

1 Answer

0 votes
by
 
Best answer
Example: Store Information in Structure and Display it #include struct student { char name[50]; int roll; float marks; } s[10]; int main() { int i; printf(“Enter information of students:\n”); // storing information for(i=0; i<10; ++i) { s[i].roll = i+1; printf(“\nFor roll number%d,\n”,s[i].roll); printf(“Enter name: “); scanf(“%s”,s[i].name); printf(“Enter marks: “); scanf(“%f”,&s[i].marks); printf(“\n”); } printf(“Displaying Information:\n\n”); // displaying information for(i=0; i<10; ++i) { printf(“\nRoll number: %d\n”,i+1); printf(“Name: “); puts(s[i].name); printf(“Marks: %.1f”,s[i].marks); printf(“\n”); } return 0; } Output Enter information of students: For roll number1, Enter name: Tom Enter marks: 98 For roll number2, Enter name: Jerry Enter marks: 89 . . . Displaying Information: Roll number: 1 Name: Tom Marks: 98 . .

Related questions

0 votes
    can any teacher increase students marks if they failed in science or matha exam because of 3-4 marks in final in kv school?? Select the correct answer from above options...
asked Dec 25, 2021 in Education by JackTerrance
0 votes
    wht is the role of computer exam this year in cbse 10th boards wht is the benefit of getting good marks in that sub?? Select the correct answer from above options...
asked Dec 19, 2021 in Education by JackTerrance
0 votes
    wht is the role of computer exam this year in cbse 10th boards wht is the benefit of getting good marks in that sub?? Select the correct answer from above options...
asked Dec 18, 2021 in Education by JackTerrance
0 votes
    Anyone can send me their computer exam paper (class 9th icse) Select the correct answer from above options...
asked Dec 15, 2021 in Education by JackTerrance
0 votes
    Kanika is a chartered accounted she looks after the accounts of various companies and keep their records in Microsoft ... the tasks. Select the correct answer from above options...
asked Dec 13, 2021 in Education by JackTerrance
0 votes
    to write a program to accept marks of three subjects and find the total mark and average marks in 3 subject Select the correct answer from above options...
asked Dec 27, 2021 in Education by JackTerrance
0 votes
    to write a program to accept marks of three subjects and find the total mark and average marks in 3 subject Select the correct answer from above options...
asked Dec 26, 2021 in Education by JackTerrance
0 votes
    Write a JAVA program to store the marks of any 5 subjects in different variables. Calculate total and average. ... ANY INPUT METHOD Select the correct answer from above options...
asked Dec 22, 2021 in Education by JackTerrance
0 votes
    Write a JAVA program to store the marks of any 5 subjects in different variables. Calculate total and average. ... total and average. Select the correct answer from above options...
asked Nov 30, 2021 in Education by JackTerrance
0 votes
    Write a menu driven program to do the task according to user’s choice: S = 2 – 4 + 8 – 16 + 32 – 64 + …. Up to 15 terms Select the correct answer from above options...
asked Dec 10, 2021 in Education by JackTerrance
0 votes
    Write a menu driven program to do the task according to user’s choice: S = 2 – 4 + 8 – 16 + 32 – 64 + …. Up to 15 terms. Select the correct answer from above options...
asked Dec 1, 2021 in Education by JackTerrance
0 votes
    Write a program to input name and percentage of 20 students of class X in two separate one dimensional arrays. ... of the class. Select the correct answer from above options...
asked Dec 24, 2021 in Education by JackTerrance
0 votes
    icse class 10 students plzz answer this write a program to check two words are in anagram (anagram is set of ... the letters are same Select the correct answer from above options...
asked Dec 19, 2021 in Education by JackTerrance
0 votes
    icse class 10 students plzz answer this write a program to check two words are in anagram (anagram is set of ... the letters are same Select the correct answer from above options...
asked Dec 18, 2021 in Education by JackTerrance
0 votes
    write a program to input three integers and find the difference between their sum and difference Select the correct answer from above options...
asked Dec 20, 2021 in Education by JackTerrance
...