Write an interactive program in C language to create an application program for your study centre. This application should be having menu options like student‟s details (Name, Enrollment, Address, Programme, course, contact, etc), semester enrolled for, assignments submitted and marks obtained, attendance for the practical courses etc. The application should be designed user-friendly.
Answers
Answered by
0
#include<stdio.h>
main()
{
struct student
{
int rollno,address;
char name[30],course;
float marks;
};
struct student s[5];
int i;
for(i=0;i<=4;i++)
{
printf("\n enter rollno");
scanf("%d",&s[i].rollno);
printf("\n enter name");
scanf("%s",&s[i].name);
printf("\n enter marks");
scanf("%f",&s[i].marks");
printf("\n enter address");
scanf("%u",&s[i].address");
printf("\n enter course");
scanf("%s",&s[i].course");
}
for(i=0;i<=4;i++)
{
printf("rollno=%d",s[i].rollno);
printf("name=%s",s[i].name);
printf("marks=%f",s[i].marks);
printf("address=%u",s[i].address);
printf("course=%s",s[i].course);
}
}
main()
{
struct student
{
int rollno,address;
char name[30],course;
float marks;
};
struct student s[5];
int i;
for(i=0;i<=4;i++)
{
printf("\n enter rollno");
scanf("%d",&s[i].rollno);
printf("\n enter name");
scanf("%s",&s[i].name);
printf("\n enter marks");
scanf("%f",&s[i].marks");
printf("\n enter address");
scanf("%u",&s[i].address");
printf("\n enter course");
scanf("%s",&s[i].course");
}
for(i=0;i<=4;i++)
{
printf("rollno=%d",s[i].rollno);
printf("name=%s",s[i].name);
printf("marks=%f",s[i].marks);
printf("address=%u",s[i].address);
printf("course=%s",s[i].course);
}
}
Similar questions
Physics,
8 months ago
Biology,
8 months ago
Science,
1 year ago
English,
1 year ago
Social Sciences,
1 year ago