Header Ads

Tuesday, 7 August 2018

Question2: Write an algorithm and its corresponding C program to generate students’ Progress-Report for VIII standard (section of 20 students) of a CBSE school for all its 4 terms. Use Structures concept. Assumptions can be made wherever necessary.

Answer:

#include<stdio.h>
#include<conio.h>
struct student
{
int RL;
char NAME[15];
int S1T1,S1T2,S1T3,S1T4,S2T1,S2T2,S2T3,S2T4,S3T1,S3T2,S3T3,S3T4
,S4T1,S4T2,S4T3,S4T4,S5T1,S5T2,S5T3,S5T4,S6T1,S6T2,S6T3,S6T4;
}
STUD[12]={
{1,”Ramesh” 
,25,60,28,65,35,80,35,40,35,68,37,72,37,90,38,55,34,27,31,38,35,87,28
69},
{2,”Dinesh” 
,35,60,36,67,31,46,36,38,25,55,49,36,28,39,37,49,27,27,34,26,31,25,31,
18},


0 comments:

Post a Comment