Computer Science, asked by HRSHTA, 8 months ago

Write a program to input and store roll numbers,names and marks in 3 subjects of n number of students in five single dimensional arrays and print the roll number and average marks of the students whose average marks are above 80. [JAVA ]

Answers

Answered by xSahiBx
9

Answer:

__________________________________

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;

}

__________________________________

Answered by cuteangel0001
0

So make sure you have studied computer related subjects during you Graduation. The basic educational qualification required to be eligible for appearing in Bank Probationary Officer (PO) Recruitment Examination is "Graduate Degree" or "Bachelor Degree" in any discipline from a recognized university.blog (a truncation of "weblog") is a discussion or informational website published on the World Wide Web consisting of discrete, often informal diary-style text entries (posts). Posts are typically displayed in reverse chronological order, so that the most recent post appears first, at the top of the web page.

Similar questions