#include<stdio.h>
int main(void){
int rollno;
char ASSIGNMENTS;
char itshaz;
int assignmentBE=9,assignmentPF=8,assignmentENG=0,assignmentISL=0,assignmentMATH=0;
float Totalmarks,quizBE=0,quizPF=2,quizENG=0,quizISL=0,quizMATH=0;
float SesMarks=0,MidMarks=0;
int BehaviorMarks;
Totalmarks=assignmentBE+assignmentPF+assignmentENG+assignmentISL+assignmentMATH+quizBE+quizPF+quizENG+quizISL+quizMATH+SesMarks+MidMarks+BehaviorMarks;
printf("Enter student ROLL.NO\t");
scanf("%d",&rollno);
if(rollno==1)
{
printf("Student name ITSHAZ UL HAQ\n");
printf("\t\t\t\t\tAssignmentS of all subjects");
printf("\nAssignmentPF %d,\nAssignmentENG %d,\nAssignmentISL %d,\nAssignmentMATH %d,\nAassignmentBE %d ",assignmentPF,assignmentENG,assignmentISL,assignmentMATH,assignmentBE);
printf("\n\t\t\t\t\tQuizes of all sujects");
printf("\nQuizBE %f,\nQuizPF %f,\nQuizENG %f,\nQuizISL %f,\nQuizMATH %f",quizBE,quizPF,quizENG,quizISL,quizMATH);
printf(" \n\t\t\t\t\tSesMarks and MidMarks. %c",SesMarks);
printf("\nSesMarks %f,\nMidMarks %f",SesMarks,MidMarks);
printf("\n\t\t\t\t\tBehaviorMarks %d\n",BehaviorMarks);
printf("Totalamarks%f",Totalmarks);
if(Totalmarks>=50)
printf("\nPassed");
else
printf("\nFail"); }
if(rollno==2){
printf("Student name KINZA KANWAL\n");
char ASSIGNMENTS;
int assignmentBE=0,assignmentPF=0,assignmentENG=0,assignmentISL=0,assignmentMATH=0;
float Totalmarks,quizBE=0,quizPF=0,quizENG=0,quizISL=0,quizMATH=0;
float SesMarks=0,MidMarks=0;
int BehaviorMarks;
Totalmarks=assignmentBE+assignmentPF+assignmentENG+assignmentISL+assignmentMATH+quizBE+quizPF+quizENG+quizISL+quizMATH+SesMarks+MidMarks+BehaviorMarks;
printf("\t\t\t\t\tAssignmentS of all subjects");
printf("\nAssignmentPF %d,\nAssignmentENG %d,\nAssignmentISL %d,\nAssignmentMATH %d,\nAassignmentBE %d ",assignmentPF,assignmentENG,assignmentISL,assignmentMATH,assignmentBE);
printf("\n\t\t\t\t\tQuizes of all sujects");
printf("\nQuizBE %f,\nQuizPF %f,\nQuizENG %f,\nQuizISL %f,\nQuizMATH %f",quizBE,quizPF,quizENG,quizISL,quizMATH);
printf(" \n\t\t\t\t\tSesMarks and MidMarks. %c",SesMarks);
printf("\nSesMarks %f,\nMidMarks %f",SesMarks,MidMarks);
printf("\n\t\t\t\t\tBehaviorMarks %d\n",BehaviorMarks);
printf("Totalamarks%f",Totalmarks);
if(Totalmarks>=50)
printf("\nPassed");
else
printf("\nFail");
}
if(rollno==3){
printf("Student name Najaf Zara\n");
char ASSIGNMENTS;
int assignmentBE=0,assignmentPF=0,assignmentENG=0,assignmentISL=0,assignmentMATH=0;
float Totalmarks,quizBE=0,quizPF=0,quizENG=0,quizISL=0,quizMATH=0;
float SesMarks=0,MidMarks=0;
int BehaviorMarks;
Totalmarks=assignmentBE+assignmentPF+assignmentENG+assignmentISL+assignmentMATH+quizBE+quizPF+quizENG+quizISL+quizMATH+SesMarks+MidMarks+BehaviorMarks;
printf("\t\t\t\t\tAssignmentS of all subjects");
printf("\nAssignmentPF %d,\nAssignmentENG %d,\nAssignmentISL %d,\nAssignmentMATH %d,\nAassignmentBE %d ",assignmentPF,assignmentENG,assignmentISL,assignmentMATH,assignmentBE);
printf("\n\t\t\t\t\tQuizes of all sujects");
printf("\nQuizBE %f,\nQuizPF %f,\nQuizENG %f,\nQuizISL %f,\nQuizMATH %f",quizBE,quizPF,quizENG,quizISL,quizMATH);
printf(" \n\t\t\t\t\tSesMarks and MidMarks. %c",SesMarks);
printf("\nSesMarks %f,\nMidMarks %f",SesMarks,MidMarks);
printf("\n\t\t\t\t\tBehaviorMarks %d\n",BehaviorMarks);
printf("Totalamarks%f",Totalmarks);
if(Totalmarks>=50)
printf("\nPassed");
else
printf("\nFail");
}
if(rollno==4){
printf("Student name zeshan tarar\n");
char ASSIGNMENTS;
int assignmentBE=0,assignmentPF=0,assignmentENG=0,assignmentISL=0,assignmentMATH=0;
float Totalmarks,quizBE=0,quizPF=0,quizENG=0,quizISL=0,quizMATH=0;
float SesMarks=0,MidMarks=0;
int BehaviorMarks;
Totalmarks=assignmentBE+assignmentPF+assignmentENG+assignmentISL+assignmentMATH+quizBE+quizPF+quizENG+quizISL+quizMATH+SesMarks+MidMarks+BehaviorMarks;
printf("\t\t\t\t\tAssignmentS of all subjects");
printf("\nAssignmentPF %d,\nAssignmentENG %d,\nAssignmentISL %d,\nAssignmentMATH %d,\nAassignmentBE %d ",assignmentPF,assignmentENG,assignmentISL,assignmentMATH,assignmentBE);
printf("\n\t\t\t\t\tQuizes of all sujects");
printf("\nQuizBE %f,\nQuizPF %f,\nQuizENG %f,\nQuizISL %f,\nQuizMATH %f",quizBE,quizPF,quizENG,quizISL,quizMATH);
printf(" \n\t\t\t\t\tSesMarks and MidMarks. %c",SesMarks);
printf("\nSesMarks %f,\nMidMarks %f",SesMarks,MidMarks);
printf("\n\t\t\t\t\tBehaviorMarks %d\n",BehaviorMarks);
printf("Totalamarks%f",Totalmarks);
if(Totalmarks>=50)
printf("\nPassed");
else
printf("\nFail");
}
if(rollno==5){
printf("Student name ISRA\n");
char ASSIGNMENTS;
int assignmentBE=0,assignmentPF=0,assignmentENG=0,assignmentISL=0,assignmentMATH=0;
float Totalmarks,quizBE=0,quizPF=0,quizENG=0,quizISL=0,quizMATH=0;
float SesMarks=0,MidMarks=0;
int BehaviorMarks;
Totalmarks=assignmentBE+assignmentPF+assignmentENG+assignmentISL+assignmentMATH+quizBE+quizPF+quizENG+quizISL+quizMATH+SesMarks+MidMarks+BehaviorMarks;
printf("\t\t\t\t\tAssignmentS of all subjects");
printf("\nAssignmentPF %d,\nAssignmentENG %d,\nAssignmentISL %d,\nAssignmentMATH %d,\nAassignmentBE %d ",assignmentPF,assignmentENG,assignmentISL,assignmentMATH,assignmentBE);
printf("\n\t\t\t\t\tQuizes of all sujects");
printf("\nQuizBE %f,\nQuizPF %f,\nQuizENG %f,\nQuizISL %f,\nQuizMATH %f",quizBE,quizPF,quizENG,quizISL,quizMATH);
printf(" \n\t\t\t\t\tSesMarks and MidMarks. %c",SesMarks);
printf("\nSesMarks %f,\nMidMarks %f",SesMarks,MidMarks);
printf("\n\t\t\t\t\tBehaviorMarks %d\n",BehaviorMarks);
printf("Totalamarks%f",Totalmarks);
if(Totalmarks>=50)
printf("\nPassed");
else
printf("\nFail");
}
}
No comments:
Post a Comment