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

Write a program with c language ( not c++) For a teacher who has 100 students in

ID: 3737078 • Letter: W

Question

Write a program with c language ( not c++) For a teacher who has 100 students in 4 different classes so he can know their
1.Names 2. Academic number 3. Class 3. Grades and marks in 4 subjects 4. Avarage grade and marks in all 4 subject
The program lines should not be less than 50 line Write a program with c language ( not c++) For a teacher who has 100 students in 4 different classes so he can know their
1.Names 2. Academic number 3. Class 3. Grades and marks in 4 subjects 4. Avarage grade and marks in all 4 subject
The program lines should not be less than 50 line Write a program with c language ( not c++) For a teacher who has 100 students in 4 different classes so he can know their
1.Names 2. Academic number 3. Class 3. Grades and marks in 4 subjects 4. Avarage grade and marks in all 4 subject
The program lines should not be less than 50 line

Explanation / Answer

#include <stdio.h>
struct student
{
    char name[20];   //NAME OF student.
    int academic_num ; //academic NUMBER OF STUDENT
    char class; // 4 clASSES A,B,C,D
    char grade[4] ; //GRADES OF 4 SUBJECT.
  
    int marks[4]; //MARKS OF 4 SUBJECT.
    char avg_grade;
    int avg_marks;
  
}
int main()
{
    struct student ar[100];    // information of 100 students.
  
    printf("enter the information of 100 students ");
    int i=0;
    for( i=0;i<100;i++)
    {
        printf("enter info of student number %d ",i+1);
        printf("enter name : ");
        scanf("%s",ar[i]->name);
        printf(" ");
        printf("enter academic number : ");
        scanf("%d",ar[i]->academic_num);
        printf(" ");
        printf("enter class: ");
        scanf("%c",ar[i]->class);
        printf(" ");
        printf("enter GRADES of 4 subject : ");
        for( j=0;j<4;j++)            //loop for 4 subjects.
        scanf("%c",ar[i]->grade[j]);
        printf(" ");
        printf("enter marks of 4 subjects : ");
        for( j=0;j<4;j++)            //loop for 4 subjects.
        scanf("%d",ar[i]->marks[j]);
        printf(" ");
        printf("enter avg_grade: ");
        scanf("%c",ar[i]->avg_grade);
        printf(" ");
        printf("enter avg_marks : ");
        scanf("%d",ar[i]->avg_marksv);
        printf(" ");
    }

    return 0;
}

// for output of the information you can use loop for 100 students.

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