You are on page 1of 2

/* ROLL NO: 1 SEM-1 ICA DIV: A

NAME : VARUN AGGARWAL SUBJECT: FOP


PROGRAM DEFINITION: A Sociologist conducts a survey among students &
collect Followind data:
* Age,sex,Marital Status,No. of Years in college
* Percentage marks obtained in last examination
* Time spent in studies/Week
* Time spent in extra curricular in last examination
* Financial Support
* No. of Cinemas seen per Month.
* Opinion about usefulness of education
*/

#include<stdio.h>
#include<conio.h>

void main()
{
int age,noy,tim_std,tim_extra,cinema,p_ex;
char sex[10],ms[10],fs[10],opn[50];
clrscr();
printf("\n Enter Ur Age: ");
scanf("%d",&age);
printf("\n Enter Ur Sex: ");
scanf("%s",&sex);
printf("\n Enter Ur Marital Status (Y|N): ");
scanf("%s",&ms);
printf("\n Enter Ur No. of Yrs in College: ");
scanf("%d",&noy);
printf("\n Enter Ur Percentage Marks obtained in last Examination: ");
scanf("%d",&p_ex);
printf("\n Enter Ur Time that you spent in studies/week: ");
scanf("%d",&tim_std);
printf("\n Enter Ur Time that you spent in extra curricular
activities/week: ");
scanf("%d",&tim_extra);
printf("\n Enter Ur Financial Support: ");
printf("\n Parents/Guardian/Government/Charitable Org./Other ");
scanf("%s",&fs);
printf("\n Enter No. of cinemas seen per Month: ");
scanf("%d",&cinema);
printf("\n Enter Ur Opinion about usefulness of education: ");
printf("\n Very useful/Useles: ");
scanf("%s",&opn);
printf("\n Age : %d",age);
printf("\n Sex : %s",sex);
printf("\n Marital Status (Y|N):%s ",ms);
printf("\n No. of Yrs in College: %d ",noy);
printf("\n Percentage Marks obtained in last Examination: %d",p_ex);
printf("\n Time that you spent in studies/week:%d",tim_std);
printf("\n Time that you spent in extra curricular activities/week:
%d",tim_extra);
printf("\n Financial Support: %s",fs);
printf("\n No. of cinemas seen per Month: %d",cinema);
printf("\n Ur Opinion about usefulness of education: %s",opn);
getch();
}
/* Input:
Enter Ur Age: 21
Enter Ur Sex: Male
Enter Ur Marital Status (Y|N): N
Enter Ur No. of Yrs in College: 3
Enter Ur Percentage Marks obtained in last Examination: 72
Enter Ur Time that you spent in studies/week: 3
Enter Ur Time that you spent in extra curricular activities/week: 1
Enter Ur Financial Support:
Parents/Guardian/Government/Charitable Org./Other Parents
Enter No. of cinemas seen per Month: 1
Enter Ur Opinion about usefulness of education:
Very useful/Useles: veryusefull
Output
Age : 21
Sex : Male
Marital Status (Y|N):N
No. of Yrs in College: 3
Percentage Marks obtained in last Examination: 72
Time that you spent in studies/week:3
Time that you spent in extra curricular activities/week:1
Financial Support: Parents
No. of cinemas seen per Month: 1
Ur Opinion about usefulness of education: veryusefull
*/