main
#import <Foundation/Foundation.h>
void pavanInterMarks()
{
unsigned short int sanskritFirstYearMarks=98;
unsigned short int englishFirstYearMarks=75;
unsigned short int mathsAFirstYearMarks=74;
unsigned short int mathsBFirstYearMarks=73;
unsigned short int physicsFirstYearMarks=58;
unsigned short int chemistryFirstYearMarks=51;
unsigned short int sanskritSecondYearMarks=98;
unsigned short int englishSecondYearMarks=75;
unsigned short int mathsASecondYearMarks=74;
unsigned short int mathsBSecondYearMarks=73;
unsigned short int physicsSecondYearMarks=58;
unsigned short int chemistrySecondYearMarks=51;
unsigned short int physicsPracMarks=25;
unsigned short int chemistryPracMarks=28;
unsigned short int pavanTotalMarks=sanskritFirstYearMarks+sanskritSecondYearMarks+englishFirstYearMarks+englishSecondYearMarks+mathsAFirstYearMarks+mathsASecondYearMarks+mathsBFirstYearMarks+mathsBSecondYearMarks+physicsPracMarks+chemistryPracMarks;
float pavanPercentage=(float)pavanTotalMarks/10;
NSLog(@"pavan marks in sanskritFirstYear=%i\n englishFirstYear=%i\n mathsAFirstYearMarks=%i\n mathsBFirstYear=%i\n physicsFirstYear=%i\n chemistryFirstYear=%i\n sanskritSecondYear=%i\n englishSecondYear=%i\n mathsASecndYear=%i\n mathsBSecondYear=%i\n physicsSecondYear=%i\n chemistrySecondYear=%i\n physics Pratical Marks=%i\n chemistry Pratical Marks=%i\n",sanskritFirstYearMarks,englishFirstYearMarks,mathsAFirstYearMarks,mathsBFirstYearMarks,physicsFirstYearMarks,chemistryFirstYearMarks,sanskritSecondYearMarks,englishSecondYearMarks,mathsASecondYearMarks,mathsBSecondYearMarks,physicsSecondYearMarks,chemistrySecondYearMarks,physicsPracMarks,chemistryPracMarks);
if (sanskritFirstYearMarks >= 35 && englishFirstYearMarks >= 35 && mathsAFirstYearMarks >= 26 && mathsBFirstYearMarks >= 26 && physicsFirstYearMarks >= 21 && chemistryFirstYearMarks >= 21 && sanskritSecondYearMarks >= 35 && englishSecondYearMarks >= 35 && mathsASecondYearMarks >= 26 && mathsBSecondYearMarks >= 26 && physicsSecondYearMarks >= 21 && chemistrySecondYearMarks >= 21)
{
NSLog(@"pavan passed");
}else
{
NSLog(@"pavan failed");
}
NSLog(@"pavan totalMarks=%i",pavanTotalMarks);
NSLog(@"pavan percentage= %f",pavanPercentage);
if (pavanPercentage>=70) {
NSLog(@"pavan got Distinction");
} else if (pavanPercentage>=60 && pavanPercentage<70){
NSLog(@"pavan got First Class");
} else if (pavanPercentage>=50 && pavanPercentage<60) {
NSLog(@"pavan got Second Class");
} else if (pavanPercentage<50){
NSLog(@"pavan got Third Class");
}
}
void jyothiInterMarks()
{
unsigned short int sanskritFirstYearMarks=78;
unsigned short int englishFirstYearMarks=75;
unsigned short int mathsAFirstYearMarks=64;
unsigned short int mathsBFirstYearMarks=73;
unsigned short int physicsFirstYearMarks=18;
unsigned short int chemistryFirstYearMarks=51;
unsigned short int sanskritSecondYearMarks=98;
unsigned short int englishSecondYearMarks=75;
unsigned short int mathsASecondYearMarks=74;
unsigned short int mathsBSecondYearMarks=63;
unsigned short int physicsSecondYearMarks=38;
unsigned short int chemistrySecondYearMarks=51;
unsigned short int physicsPracMarks=15;
unsigned short int chemistryPracMarks=21;
unsigned short int jyothiTotalMarks=sanskritFirstYearMarks+sanskritSecondYearMarks+englishFirstYearMarks+englishSecondYearMarks+mathsAFirstYearMarks+mathsASecondYearMarks+mathsBFirstYearMarks+mathsBSecondYearMarks+physicsPracMarks+chemistryPracMarks;
float jyothiPercentage=(float)jyothiTotalMarks/10;
NSLog(@"jyothi marks in sanskritFirstYear=%i\n englishFirstYear=%i\n mathsAFirstYearMarks=%i\n mathsBFirstYear=%i\n physicsFirstYear=%i\n chemistryFirstYear=%i\n sanskritSecondYear=%i\n englishSecondYear=%i\n mathsASecndYear=%i\n mathsBSecondYear=%i\n physicsSecondYear=%i\n chemistrySecondYear=%i\n physics Pratical Marks=%i\n chemistry Pratical Marks=%i\n",sanskritFirstYearMarks,englishFirstYearMarks,mathsAFirstYearMarks,mathsBFirstYearMarks,physicsFirstYearMarks,chemistryFirstYearMarks,sanskritSecondYearMarks,englishSecondYearMarks,mathsASecondYearMarks,mathsBSecondYearMarks,physicsSecondYearMarks,chemistrySecondYearMarks,physicsPracMarks,chemistryPracMarks);
if (sanskritFirstYearMarks >= 35 && englishFirstYearMarks >= 35 && mathsAFirstYearMarks >= 26 && mathsBFirstYearMarks >= 26 && physicsFirstYearMarks >= 21 && chemistryFirstYearMarks >= 21 && sanskritSecondYearMarks >= 35 && englishSecondYearMarks >= 35 && mathsASecondYearMarks >= 26 && mathsBSecondYearMarks >= 26 && physicsSecondYearMarks >= 21 && chemistrySecondYearMarks >= 21)
{
NSLog(@"jyothi passed");
}else
{
NSLog(@"jyothi failed");
}
NSLog(@"jyothi totalMarks=%i",jyothiTotalMarks);
NSLog(@"jyothi percentage= %f",jyothiPercentage);
if (jyothiPercentage>=70) {
NSLog(@"jyothi got Distinction");
} else if (jyothiPercentage>=60 && jyothiPercentage<70){
NSLog(@"jyothi got First Class");
} else if (jyothiPercentage>=50 && jyothiPercentage<60) {
NSLog(@"jyothi got Second Class");
} else if (jyothiPercentage<50){
NSLog(@"jyothi got Third Class");
}
}
void swamyInterMarks()
{
unsigned short int sanskritFirstYearMarks=58;
unsigned short int englishFirstYearMarks=75;
unsigned short int mathsAFirstYearMarks=54;
unsigned short int mathsBFirstYearMarks=53;
unsigned short int physicsFirstYearMarks=58;
unsigned short int chemistryFirstYearMarks=51;
unsigned short int sanskritSecondYearMarks=38;
unsigned short int englishSecondYearMarks=55;
unsigned short int mathsASecondYearMarks=74;
unsigned short int mathsBSecondYearMarks=73;
unsigned short int physicsSecondYearMarks=18;
unsigned short int chemistrySecondYearMarks=11;
unsigned short int physicsPracMarks=25;
unsigned short int chemistryPracMarks=18;
unsigned short int swamyTotalMarks=sanskritFirstYearMarks+sanskritSecondYearMarks+englishFirstYearMarks+englishSecondYearMarks+mathsAFirstYearMarks+mathsASecondYearMarks+mathsBFirstYearMarks+mathsBSecondYearMarks+physicsPracMarks+chemistryPracMarks;
float swamyPercentage=(float)swamyTotalMarks/10;
NSLog(@"swamy marks in sanskritFirstYear=%i\n englishFirstYear=%i\n mathsAFirstYearMarks=%i\n mathsBFirstYear=%i\n physicsFirstYear=%i\n chemistryFirstYear=%i\n sanskritSecondYear=%i\n englishSecondYear=%i\n mathsASecndYear=%i\n mathsBSecondYear=%i\n physicsSecondYear=%i\n chemistrySecondYear=%i\n physics Pratical Marks=%i\n chemistry Pratical Marks=%i\n",sanskritFirstYearMarks,englishFirstYearMarks,mathsAFirstYearMarks,mathsBFirstYearMarks,physicsFirstYearMarks,chemistryFirstYearMarks,sanskritSecondYearMarks,englishSecondYearMarks,mathsASecondYearMarks,mathsBSecondYearMarks,physicsSecondYearMarks,chemistrySecondYearMarks,physicsPracMarks,chemistryPracMarks);
if (sanskritFirstYearMarks >= 35 && englishFirstYearMarks >= 35 && mathsAFirstYearMarks >= 26 && mathsBFirstYearMarks >= 26 && physicsFirstYearMarks >= 21 && chemistryFirstYearMarks >= 21 && sanskritSecondYearMarks >= 35 && englishSecondYearMarks >= 35 && mathsASecondYearMarks >= 26 && mathsBSecondYearMarks >= 26 && physicsSecondYearMarks >= 21 && chemistrySecondYearMarks >= 21)
{
NSLog(@"swamy passed");
}else
{
NSLog(@"swamy failed");
}
NSLog(@"swamy totalMarks=%i",swamyTotalMarks);
NSLog(@"swamy percentage= %f",swamyPercentage);
if (swamyPercentage>=70) {
NSLog(@"swamy got Distinction");
} else if (swamyPercentage>=60 && swamyPercentage<70){
NSLog(@"swamy got First Class");
} else if (swamyPercentage>=50 && swamyPercentage<60) {
NSLog(@"swamy got Second Class");
} else if (swamyPercentage<50){
NSLog(@"swamy got Third Class");
}
}
void maheshInterMarks()
{
unsigned short int sanskritFirstYearMarks=98;
unsigned short int englishFirstYearMarks=95;
unsigned short int mathsAFirstYearMarks=74;
unsigned short int mathsBFirstYearMarks=73;
unsigned short int physicsFirstYearMarks=48;
unsigned short int chemistryFirstYearMarks=41;
unsigned short int sanskritSecondYearMarks=98;
unsigned short int englishSecondYearMarks=25;
unsigned short int mathsASecondYearMarks=74;
unsigned short int mathsBSecondYearMarks=73;
unsigned short int physicsSecondYearMarks=58;
unsigned short int chemistrySecondYearMarks=51;
unsigned short int physicsPracMarks=25;
unsigned short int chemistryPracMarks=28;
unsigned short int maheshTotalMarks=sanskritFirstYearMarks+sanskritSecondYearMarks+englishFirstYearMarks+englishSecondYearMarks+mathsAFirstYearMarks+mathsASecondYearMarks+mathsBFirstYearMarks+mathsBSecondYearMarks+physicsPracMarks+chemistryPracMarks;
float maheshPercentage=(float)maheshTotalMarks/10;
NSLog(@"mahesh marks in sanskritFirstYear=%i\n englishFirstYear=%i\n mathsAFirstYearMarks=%i\n mathsBFirstYear=%i\n physicsFirstYear=%i\n chemistryFirstYear=%i\n sanskritSecondYear=%i\n englishSecondYear=%i\n mathsASecndYear=%i\n mathsBSecondYear=%i\n physicsSecondYear=%i\n chemistrySecondYear=%i\n physics Pratical Marks=%i\n chemistry Pratical Marks=%i\n",sanskritFirstYearMarks,englishFirstYearMarks,mathsAFirstYearMarks,mathsBFirstYearMarks,physicsFirstYearMarks,chemistryFirstYearMarks,sanskritSecondYearMarks,englishSecondYearMarks,mathsASecondYearMarks,mathsBSecondYearMarks,physicsSecondYearMarks,chemistrySecondYearMarks,physicsPracMarks,chemistryPracMarks);
if (sanskritFirstYearMarks >= 35 && englishFirstYearMarks >= 35 && mathsAFirstYearMarks >= 26 && mathsBFirstYearMarks >= 26 && physicsFirstYearMarks >= 21 && chemistryFirstYearMarks >= 21 && sanskritSecondYearMarks >= 35 && englishSecondYearMarks >= 35 && mathsASecondYearMarks >= 26 && mathsBSecondYearMarks >= 26 && physicsSecondYearMarks >= 21 && chemistrySecondYearMarks >= 21)
{
NSLog(@"mahesh passed");
}else
{
NSLog(@"mahesh failed");
}
NSLog(@"mahesh totalMarks=%i",maheshTotalMarks);
NSLog(@"mahesh percentage= %f",maheshPercentage);
if (maheshPercentage>=70) {
NSLog(@"mahesh got Distinction");
} else if (maheshPercentage>=60 && maheshPercentage<70){
NSLog(@"mahesh got First Class");
} else if (maheshPercentage>=50 && maheshPercentage<60) {
NSLog(@"mahesh got Second Class");
} else if (maheshPercentage<50){
NSLog(@"mahesh got Third Class");
}
}
void anjaliInterMarks()
{
unsigned short int sanskritFirstYearMarks=98;
unsigned short int englishFirstYearMarks=95;
unsigned short int mathsAFirstYearMarks=74;
unsigned short int mathsBFirstYearMarks=73;
unsigned short int physicsFirstYearMarks=58;
unsigned short int chemistryFirstYearMarks=51;
unsigned short int sanskritSecondYearMarks=98;
unsigned short int englishSecondYearMarks=85;
unsigned short int mathsASecondYearMarks=74;
unsigned short int mathsBSecondYearMarks=73;
unsigned short int physicsSecondYearMarks=48;
unsigned short int chemistrySecondYearMarks=51;
unsigned short int physicsPracMarks=25;
unsigned short int chemistryPracMarks=28;
unsigned short int anjaliTotalMarks=sanskritFirstYearMarks+sanskritSecondYearMarks+englishFirstYearMarks+englishSecondYearMarks+mathsAFirstYearMarks+mathsASecondYearMarks+mathsBFirstYearMarks+mathsBSecondYearMarks+physicsPracMarks+chemistryPracMarks;
float anjaliPercentage=(float)anjaliTotalMarks/10;
NSLog(@"anjali marks in sanskritFirstYear=%i\n englishFirstYear=%i\n mathsAFirstYearMarks=%i\n mathsBFirstYear=%i\n physicsFirstYear=%i\n chemistryFirstYear=%i\n sanskritSecondYear=%i\n englishSecondYear=%i\n mathsASecndYear=%i\n mathsBSecondYear=%i\n physicsSecondYear=%i\n chemistrySecondYear=%i\n physics Pratical Marks=%i\n chemistry Pratical Marks=%i\n",sanskritFirstYearMarks,englishFirstYearMarks,mathsAFirstYearMarks,mathsBFirstYearMarks,physicsFirstYearMarks,chemistryFirstYearMarks,sanskritSecondYearMarks,englishSecondYearMarks,mathsASecondYearMarks,mathsBSecondYearMarks,physicsSecondYearMarks,chemistrySecondYearMarks,physicsPracMarks,chemistryPracMarks);
if (sanskritFirstYearMarks >= 35 && englishFirstYearMarks >= 35 && mathsAFirstYearMarks >= 26 && mathsBFirstYearMarks >= 26 && physicsFirstYearMarks >= 21 && chemistryFirstYearMarks >= 21 && sanskritSecondYearMarks >= 35 && englishSecondYearMarks >= 35 && mathsASecondYearMarks >= 26 && mathsBSecondYearMarks >= 26 && physicsSecondYearMarks >= 21 && chemistrySecondYearMarks >= 21)
{
NSLog(@"anjali passed");
}else
{
NSLog(@"anjali failed");
}
NSLog(@"anjali totalMarks=%i",anjaliTotalMarks);
NSLog(@"anjali percentage= %f",anjaliPercentage);
if (anjaliPercentage>=70) {
NSLog(@"anjali got Distinction");
} else if (anjaliPercentage>=60 && anjaliPercentage<70){
NSLog(@"anjali got First Class");
} else if (anjaliPercentage>=50 && anjaliPercentage<60) {
NSLog(@"anjali got Second Class");
} else if (anjaliPercentage<50){
NSLog(@"anjali got Third Class");
}
}
void chiruInterMarks()
{
unsigned short int sanskritFirstYearMarks=98;
unsigned short int englishFirstYearMarks=35;
unsigned short int mathsAFirstYearMarks=74;
unsigned short int mathsBFirstYearMarks=73;
unsigned short int physicsFirstYearMarks=58;
unsigned short int chemistryFirstYearMarks=51;
unsigned short int sanskritSecondYearMarks=98;
unsigned short int englishSecondYearMarks=75;
unsigned short int mathsASecondYearMarks=74;
unsigned short int mathsBSecondYearMarks=73;
unsigned short int physicsSecondYearMarks=28;
unsigned short int chemistrySecondYearMarks=51;
unsigned short int physicsPracMarks=25;
unsigned short int chemistryPracMarks=28;
unsigned short int chiruTotalMarks=sanskritFirstYearMarks+sanskritSecondYearMarks+englishFirstYearMarks+englishSecondYearMarks+mathsAFirstYearMarks+mathsASecondYearMarks+mathsBFirstYearMarks+mathsBSecondYearMarks+physicsPracMarks+chemistryPracMarks;
float chiruPercentage=(float)chiruTotalMarks/10;
NSLog(@"chiru marks in sanskritFirstYear=%i\n englishFirstYear=%i\n mathsAFirstYearMarks=%i\n mathsBFirstYear=%i\n physicsFirstYear=%i\n chemistryFirstYear=%i\n sanskritSecondYear=%i\n englishSecondYear=%i\n mathsASecndYear=%i\n mathsBSecondYear=%i\n physicsSecondYear=%i\n chemistrySecondYear=%i\n physics Pratical Marks=%i\n chemistry Pratical Marks=%i\n",sanskritFirstYearMarks,englishFirstYearMarks,mathsAFirstYearMarks,mathsBFirstYearMarks,physicsFirstYearMarks,chemistryFirstYearMarks,sanskritSecondYearMarks,englishSecondYearMarks,mathsASecondYearMarks,mathsBSecondYearMarks,physicsSecondYearMarks,chemistrySecondYearMarks,physicsPracMarks,chemistryPracMarks);
if (sanskritFirstYearMarks >= 35 && englishFirstYearMarks >= 35 && mathsAFirstYearMarks >= 26 && mathsBFirstYearMarks >= 26 && physicsFirstYearMarks >= 21 && chemistryFirstYearMarks >= 21 && sanskritSecondYearMarks >= 35 && englishSecondYearMarks >= 35 && mathsASecondYearMarks >= 26 && mathsBSecondYearMarks >= 26 && physicsSecondYearMarks >= 21 && chemistrySecondYearMarks >= 21)
{
NSLog(@"chiru passed");
}else
{
NSLog(@"chiru failed");
}
NSLog(@"chiru totalMarks=%i",chiruTotalMarks);
NSLog(@"chiru percentage= %f",chiruPercentage);
if (chiruPercentage>=70) {
NSLog(@"chiru got Distinction");
} else if (chiruPercentage>=60 && chiruPercentage<70){
NSLog(@"chiru got First Class");
} else if (chiruPercentage>=50 && chiruPercentage<60) {
NSLog(@"chiru got Second Class");
} else if (chiruPercentage<50){
NSLog(@"chiru got Third Class");
}
}
void raviInterMarks()
{
unsigned short int sanskritFirstYearMarks=98;
unsigned short int englishFirstYearMarks=85;
unsigned short int mathsAFirstYearMarks=74;
unsigned short int mathsBFirstYearMarks=73;
unsigned short int physicsFirstYearMarks=58;
unsigned short int chemistryFirstYearMarks=58;
unsigned short int sanskritSecondYearMarks=98;
unsigned short int englishSecondYearMarks=95;
unsigned short int mathsASecondYearMarks=74;
unsigned short int mathsBSecondYearMarks=73;
unsigned short int physicsSecondYearMarks=58;
unsigned short int chemistrySecondYearMarks=58;
unsigned short int physicsPracMarks=25;
unsigned short int chemistryPracMarks=28;
unsigned short int raviTotalMarks=sanskritFirstYearMarks+sanskritSecondYearMarks+englishFirstYearMarks+englishSecondYearMarks+mathsAFirstYearMarks+mathsASecondYearMarks+mathsBFirstYearMarks+mathsBSecondYearMarks+physicsPracMarks+chemistryPracMarks;
float raviPercentage=(float)raviTotalMarks/10;
NSLog(@"ravi marks in sanskritFirstYear=%i\n englishFirstYear=%i\n mathsAFirstYearMarks=%i\n mathsBFirstYear=%i\n physicsFirstYear=%i\n chemistryFirstYear=%i\n sanskritSecondYear=%i\n englishSecondYear=%i\n mathsASecndYear=%i\n mathsBSecondYear=%i\n physicsSecondYear=%i\n chemistrySecondYear=%i\n physics Pratical Marks=%i\n chemistry Pratical Marks=%i\n",sanskritFirstYearMarks,englishFirstYearMarks,mathsAFirstYearMarks,mathsBFirstYearMarks,physicsFirstYearMarks,chemistryFirstYearMarks,sanskritSecondYearMarks,englishSecondYearMarks,mathsASecondYearMarks,mathsBSecondYearMarks,physicsSecondYearMarks,chemistrySecondYearMarks,physicsPracMarks,chemistryPracMarks);
if (sanskritFirstYearMarks >= 35 && englishFirstYearMarks >= 35 && mathsAFirstYearMarks >= 26 && mathsBFirstYearMarks >= 26 && physicsFirstYearMarks >= 21 && chemistryFirstYearMarks >= 21 && sanskritSecondYearMarks >= 35 && englishSecondYearMarks >= 35 && mathsASecondYearMarks >= 26 && mathsBSecondYearMarks >= 26 && physicsSecondYearMarks >= 21 && chemistrySecondYearMarks >= 21)
{
NSLog(@"ravi passed");
}else
{
NSLog(@"ravi failed");
}
NSLog(@"ravi totalMarks=%i",raviTotalMarks);
NSLog(@"ravi percentage= %f",raviPercentage);
if (raviPercentage>=70) {
NSLog(@"ravi got Distinction");
} else if (raviPercentage>=60 && raviPercentage<70){
NSLog(@"ravi got First Class");
} else if (raviPercentage>=50 && raviPercentage<60) {
NSLog(@"ravi got Second Class");
} else if (raviPercentage<50){
NSLog(@"ravi got Third Class");
}
}
void rajuInterMarks()
{
unsigned short int sanskritFirstYearMarks=68;
unsigned short int englishFirstYearMarks=65;
unsigned short int mathsAFirstYearMarks=74;
unsigned short int mathsBFirstYearMarks=73;
unsigned short int physicsFirstYearMarks=58;
unsigned short int chemistryFirstYearMarks=51;
unsigned short int sanskritSecondYearMarks=58;
unsigned short int englishSecondYearMarks=95;
unsigned short int mathsASecondYearMarks=74;
unsigned short int mathsBSecondYearMarks=73;
unsigned short int physicsSecondYearMarks=58;
unsigned short int chemistrySecondYearMarks=51;
unsigned short int physicsPracMarks=25;
unsigned short int chemistryPracMarks=28;
unsigned short int rajuTotalMarks=sanskritFirstYearMarks+sanskritSecondYearMarks+englishFirstYearMarks+englishSecondYearMarks+mathsAFirstYearMarks+mathsASecondYearMarks+mathsBFirstYearMarks+mathsBSecondYearMarks+physicsPracMarks+chemistryPracMarks;
float rajuPercentage=(float)rajuTotalMarks/10;
NSLog(@"raju marks in sanskritFirstYear=%i\n englishFirstYear=%i\n mathsAFirstYearMarks=%i\n mathsBFirstYear=%i\n physicsFirstYear=%i\n chemistryFirstYear=%i\n sanskritSecondYear=%i\n englishSecondYear=%i\n mathsASecndYear=%i\n mathsBSecondYear=%i\n physicsSecondYear=%i\n chemistrySecondYear=%i\n physics Pratical Marks=%i\n chemistry Pratical Marks=%i\n",sanskritFirstYearMarks,englishFirstYearMarks,mathsAFirstYearMarks,mathsBFirstYearMarks,physicsFirstYearMarks,chemistryFirstYearMarks,sanskritSecondYearMarks,englishSecondYearMarks,mathsASecondYearMarks,mathsBSecondYearMarks,physicsSecondYearMarks,chemistrySecondYearMarks,physicsPracMarks,chemistryPracMarks);
if (sanskritFirstYearMarks >= 35 && englishFirstYearMarks >= 35 && mathsAFirstYearMarks >= 26 && mathsBFirstYearMarks >= 26 && physicsFirstYearMarks >= 21 && chemistryFirstYearMarks >= 21 && sanskritSecondYearMarks >= 35 && englishSecondYearMarks >= 35 && mathsASecondYearMarks >= 26 && mathsBSecondYearMarks >= 26 && physicsSecondYearMarks >= 21 && chemistrySecondYearMarks >= 21)
{
NSLog(@"raju passed");
}else
{
NSLog(@"raju failed");
}
NSLog(@"raju totalMarks=%i",rajuTotalMarks);
NSLog(@"raju percentage= %f",rajuPercentage);
if (rajuPercentage>=70) {
NSLog(@"raju got Distinction");
} else if (rajuPercentage>=60 && rajuPercentage<70){
NSLog(@"raju got First Class");
} else if (rajuPercentage>=50 && rajuPercentage<60) {
NSLog(@"raju got Second Class");
} else if (rajuPercentage<50){
NSLog(@"raju got Third Class");
}
}
void dineshInterMarks()
{
unsigned short int sanskritFirstYearMarks=98;
unsigned short int englishFirstYearMarks=25;
unsigned short int mathsAFirstYearMarks=24;
unsigned short int mathsBFirstYearMarks=23;
unsigned short int physicsFirstYearMarks=58;
unsigned short int chemistryFirstYearMarks=51;
unsigned short int sanskritSecondYearMarks=98;
unsigned short int englishSecondYearMarks=75;
unsigned short int mathsASecondYearMarks=74;
unsigned short int mathsBSecondYearMarks=73;
unsigned short int physicsSecondYearMarks=58;
unsigned short int chemistrySecondYearMarks=51;
unsigned short int physicsPracMarks=25;
unsigned short int chemistryPracMarks=28;
unsigned short int dineshTotalMarks=sanskritFirstYearMarks+sanskritSecondYearMarks+englishFirstYearMarks+englishSecondYearMarks+mathsAFirstYearMarks+mathsASecondYearMarks+mathsBFirstYearMarks+mathsBSecondYearMarks+physicsPracMarks+chemistryPracMarks;
float dineshPercentage=(float)dineshTotalMarks/10;
NSLog(@"dinesh marks in sanskritFirstYear=%i\n englishFirstYear=%i\n mathsAFirstYearMarks=%i\n mathsBFirstYear=%i\n physicsFirstYear=%i\n chemistryFirstYear=%i\n sanskritSecondYear=%i\n englishSecondYear=%i\n mathsASecndYear=%i\n mathsBSecondYear=%i\n physicsSecondYear=%i\n chemistrySecondYear=%i\n physics Pratical Marks=%i\n chemistry Pratical Marks=%i\n",sanskritFirstYearMarks,englishFirstYearMarks,mathsAFirstYearMarks,mathsBFirstYearMarks,physicsFirstYearMarks,chemistryFirstYearMarks,sanskritSecondYearMarks,englishSecondYearMarks,mathsASecondYearMarks,mathsBSecondYearMarks,physicsSecondYearMarks,chemistrySecondYearMarks,physicsPracMarks,chemistryPracMarks);
if (sanskritFirstYearMarks >= 35 && englishFirstYearMarks >= 35 && mathsAFirstYearMarks >= 26 && mathsBFirstYearMarks >= 26 && physicsFirstYearMarks >= 21 && chemistryFirstYearMarks >= 21 && sanskritSecondYearMarks >= 35 && englishSecondYearMarks >= 35 && mathsASecondYearMarks >= 26 && mathsBSecondYearMarks >= 26 && physicsSecondYearMarks >= 21 && chemistrySecondYearMarks >= 21)
{
NSLog(@"dinesh passed");
}else
{
NSLog(@"dinesh failed");
}
NSLog(@"dinesh totalMarks=%i",dineshTotalMarks);
NSLog(@"dinesh percentage= %f",dineshPercentage);
if (dineshPercentage>=70) {
NSLog(@"dinesh got Distinction");
} else if (dineshPercentage>=60 && dineshPercentage<70){
NSLog(@"dinesh got First Class");
} else if (dineshPercentage>=50 && dineshPercentage<60) {
NSLog(@"dinesh got Second Class");
} else if (dineshPercentage<50){
NSLog(@"dinesh got Third Class");
}
}
void harishInterMarks()
{
unsigned short int sanskritFirstYearMarks=88;
unsigned short int englishFirstYearMarks=85;
unsigned short int mathsAFirstYearMarks=74;
unsigned short int mathsBFirstYearMarks=53;
unsigned short int physicsFirstYearMarks=48;
unsigned short int chemistryFirstYearMarks=51;
unsigned short int sanskritSecondYearMarks=98;
unsigned short int englishSecondYearMarks=85;
unsigned short int mathsASecondYearMarks=74;
unsigned short int mathsBSecondYearMarks=43;
unsigned short int physicsSecondYearMarks=58;
unsigned short int chemistrySecondYearMarks=51;
unsigned short int physicsPracMarks=25;
unsigned short int chemistryPracMarks=28;
unsigned short int harishTotalMarks=sanskritFirstYearMarks+sanskritSecondYearMarks+englishFirstYearMarks+englishSecondYearMarks+mathsAFirstYearMarks+mathsASecondYearMarks+mathsBFirstYearMarks+mathsBSecondYearMarks+physicsPracMarks+chemistryPracMarks;
float harishPercentage=(float)harishTotalMarks/10;
NSLog(@"harish marks in sanskritFirstYear=%i\n englishFirstYear=%i\n mathsAFirstYearMarks=%i\n mathsBFirstYear=%i\n physicsFirstYear=%i\n chemistryFirstYear=%i\n sanskritSecondYear=%i\n englishSecondYear=%i\n mathsASecndYear=%i\n mathsBSecondYear=%i\n physicsSecondYear=%i\n chemistrySecondYear=%i\n physics Pratical Marks=%i\n chemistry Pratical Marks=%i\n",sanskritFirstYearMarks,englishFirstYearMarks,mathsAFirstYearMarks,mathsBFirstYearMarks,physicsFirstYearMarks,chemistryFirstYearMarks,sanskritSecondYearMarks,englishSecondYearMarks,mathsASecondYearMarks,mathsBSecondYearMarks,physicsSecondYearMarks,chemistrySecondYearMarks,physicsPracMarks,chemistryPracMarks);
if (sanskritFirstYearMarks >= 35 && englishFirstYearMarks >= 35 && mathsAFirstYearMarks >= 26 && mathsBFirstYearMarks >= 26 && physicsFirstYearMarks >= 21 && chemistryFirstYearMarks >= 21 && sanskritSecondYearMarks >= 35 && englishSecondYearMarks >= 35 && mathsASecondYearMarks >= 26 && mathsBSecondYearMarks >= 26 && physicsSecondYearMarks >= 21 && chemistrySecondYearMarks >= 21)
{
NSLog(@"harish passed");
}else
{
NSLog(@"harish failed");
}
NSLog(@"harish totalMarks=%i",harishTotalMarks);
NSLog(@"harish percentage= %f",harishPercentage);
if (harishPercentage>=70) {
NSLog(@"harish got Distinction");
} else if (harishPercentage>=60 && harishPercentage<70){
NSLog(@"harish got First Class");
} else if (harishPercentage>=50 && harishPercentage<60) {
NSLog(@"harish got Second Class");
} else if (harishPercentage<50){
NSLog(@"harish got Third Class");
}
}
void raghuInterMarks()
{
unsigned short int sanskritFirstYearMarks=28;
unsigned short int englishFirstYearMarks=25;
unsigned short int mathsAFirstYearMarks=74;
unsigned short int mathsBFirstYearMarks=23;
unsigned short int physicsFirstYearMarks=28;
unsigned short int chemistryFirstYearMarks=11;
unsigned short int sanskritSecondYearMarks=98;
unsigned short int englishSecondYearMarks=75;
unsigned short int mathsASecondYearMarks=74;
unsigned short int mathsBSecondYearMarks=73;
unsigned short int physicsSecondYearMarks=58;
unsigned short int chemistrySecondYearMarks=51;
unsigned short int physicsPracMarks=25;
unsigned short int chemistryPracMarks=28;
unsigned short int raghuTotalMarks=sanskritFirstYearMarks+sanskritSecondYearMarks+englishFirstYearMarks+englishSecondYearMarks+mathsAFirstYearMarks+mathsASecondYearMarks+mathsBFirstYearMarks+mathsBSecondYearMarks+physicsPracMarks+chemistryPracMarks;
float raghuPercentage=(float)raghuTotalMarks/10;
NSLog(@"raghu marks in sanskritFirstYear=%i\n englishFirstYear=%i\n mathsAFirstYearMarks=%i\n mathsBFirstYear=%i\n physicsFirstYear=%i\n chemistryFirstYear=%i\n sanskritSecondYear=%i\n englishSecondYear=%i\n mathsASecndYear=%i\n mathsBSecondYear=%i\n physicsSecondYear=%i\n chemistrySecondYear=%i\n physics Pratical Marks=%i\n chemistry Pratical Marks=%i\n",sanskritFirstYearMarks,englishFirstYearMarks,mathsAFirstYearMarks,mathsBFirstYearMarks,physicsFirstYearMarks,chemistryFirstYearMarks,sanskritSecondYearMarks,englishSecondYearMarks,mathsASecondYearMarks,mathsBSecondYearMarks,physicsSecondYearMarks,chemistrySecondYearMarks,physicsPracMarks,chemistryPracMarks);
if (sanskritFirstYearMarks >= 35 && englishFirstYearMarks >= 35 && mathsAFirstYearMarks >= 26 && mathsBFirstYearMarks >= 26 && physicsFirstYearMarks >= 21 && chemistryFirstYearMarks >= 21 && sanskritSecondYearMarks >= 35 && englishSecondYearMarks >= 35 && mathsASecondYearMarks >= 26 && mathsBSecondYearMarks >= 26 && physicsSecondYearMarks >= 21 && chemistrySecondYearMarks >= 21)
{
NSLog(@"raghu passed");
}else
{
NSLog(@"raghu failed");
}
NSLog(@"raghu totalMarks=%i",raghuTotalMarks);
NSLog(@"raghu percentage= %f",raghuPercentage);
if (raghuPercentage>=70) {
NSLog(@"raghu got Distinction");
} else if (raghuPercentage>=60 && raghuPercentage<70){
NSLog(@"raghu got First Class");
} else if (raghuPercentage>=50 && raghuPercentage<60) {
NSLog(@"raghu got Second Class");
} else if (raghuPercentage<50){
NSLog(@"raghu got Third Class");
}
}
void naveenInterMarks()
{
unsigned short int sanskritFirstYearMarks=98;
unsigned short int englishFirstYearMarks=95;
unsigned short int mathsAFirstYearMarks=74;
unsigned short int mathsBFirstYearMarks=75;
unsigned short int physicsFirstYearMarks=58;
unsigned short int chemistryFirstYearMarks=59;
unsigned short int sanskritSecondYearMarks=98;
unsigned short int englishSecondYearMarks=95;
unsigned short int mathsASecondYearMarks=74;
unsigned short int mathsBSecondYearMarks=73;
unsigned short int physicsSecondYearMarks=58;
unsigned short int chemistrySecondYearMarks=59;
unsigned short int physicsPracMarks=25;
unsigned short int chemistryPracMarks=28;
unsigned short int naveenTotalMarks=sanskritFirstYearMarks+sanskritSecondYearMarks+englishFirstYearMarks+englishSecondYearMarks+mathsAFirstYearMarks+mathsASecondYearMarks+mathsBFirstYearMarks+mathsBSecondYearMarks+physicsPracMarks+chemistryPracMarks;
float naveenPercentage=(float)naveenTotalMarks/10;
NSLog(@"naveen marks in sanskritFirstYear=%i\n englishFirstYear=%i\n mathsAFirstYearMarks=%i\n mathsBFirstYear=%i\n physicsFirstYear=%i\n chemistryFirstYear=%i\n sanskritSecondYear=%i\n englishSecondYear=%i\n mathsASecndYear=%i\n mathsBSecondYear=%i\n physicsSecondYear=%i\n chemistrySecondYear=%i\n physics Pratical Marks=%i\n chemistry Pratical Marks=%i\n",sanskritFirstYearMarks,englishFirstYearMarks,mathsAFirstYearMarks,mathsBFirstYearMarks,physicsFirstYearMarks,chemistryFirstYearMarks,sanskritSecondYearMarks,englishSecondYearMarks,mathsASecondYearMarks,mathsBSecondYearMarks,physicsSecondYearMarks,chemistrySecondYearMarks,physicsPracMarks,chemistryPracMarks);
if (sanskritFirstYearMarks >= 35 && englishFirstYearMarks >= 35 && mathsAFirstYearMarks >= 26 && mathsBFirstYearMarks >= 26 && physicsFirstYearMarks >= 21 && chemistryFirstYearMarks >= 21 && sanskritSecondYearMarks >= 35 && englishSecondYearMarks >= 35 && mathsASecondYearMarks >= 26 && mathsBSecondYearMarks >= 26 && physicsSecondYearMarks >= 21 && chemistrySecondYearMarks >= 21)
{
NSLog(@"naveen passed");
}else
{
NSLog(@"naveen failed");
}
NSLog(@"naveen totalMarks=%i",naveenTotalMarks);
NSLog(@"naveen percentage= %f",naveenPercentage);
if (naveenPercentage>=70) {
NSLog(@"naveen got Distinction");
} else if (naveenPercentage>=60 && naveenPercentage<70){
NSLog(@"naveen got First Class");
} else if (naveenPercentage>=50 && naveenPercentage<60) {
NSLog(@"naveen got Second Class");
} else if (naveenPercentage<50){
NSLog(@"naveen got Third Class");
}
}
void ramInterMarks()
{
unsigned short int sanskritFirstYearMarks=98;
unsigned short int englishFirstYearMarks=85;
unsigned short int mathsAFirstYearMarks=54;
unsigned short int mathsBFirstYearMarks=53;
unsigned short int physicsFirstYearMarks=48;
unsigned short int chemistryFirstYearMarks=41;
unsigned short int sanskritSecondYearMarks=98;
unsigned short int englishSecondYearMarks=75;
unsigned short int mathsASecondYearMarks=44;
unsigned short int mathsBSecondYearMarks=43;
unsigned short int physicsSecondYearMarks=48;
unsigned short int chemistrySecondYearMarks=51;
unsigned short int physicsPracMarks=25;
unsigned short int chemistryPracMarks=18;
unsigned short int ramTotalMarks=sanskritFirstYearMarks+sanskritSecondYearMarks+englishFirstYearMarks+englishSecondYearMarks+mathsAFirstYearMarks+mathsASecondYearMarks+mathsBFirstYearMarks+mathsBSecondYearMarks+physicsPracMarks+chemistryPracMarks;
float ramPercentage=(float)ramTotalMarks/10;
NSLog(@"ram marks in sanskritFirstYear=%i\n englishFirstYear=%i\n mathsAFirstYearMarks=%i\n mathsBFirstYear=%i\n physicsFirstYear=%i\n chemistryFirstYear=%i\n sanskritSecondYear=%i\n englishSecondYear=%i\n mathsASecndYear=%i\n mathsBSecondYear=%i\n physicsSecondYear=%i\n chemistrySecondYear=%i\n physics Pratical Marks=%i\n chemistry Pratical Marks=%i\n",sanskritFirstYearMarks,englishFirstYearMarks,mathsAFirstYearMarks,mathsBFirstYearMarks,physicsFirstYearMarks,chemistryFirstYearMarks,sanskritSecondYearMarks,englishSecondYearMarks,mathsASecondYearMarks,mathsBSecondYearMarks,physicsSecondYearMarks,chemistrySecondYearMarks,physicsPracMarks,chemistryPracMarks);
if (sanskritFirstYearMarks >= 35 && englishFirstYearMarks >= 35 && mathsAFirstYearMarks >= 26 && mathsBFirstYearMarks >= 26 && physicsFirstYearMarks >= 21 && chemistryFirstYearMarks >= 21 && sanskritSecondYearMarks >= 35 && englishSecondYearMarks >= 35 && mathsASecondYearMarks >= 26 && mathsBSecondYearMarks >= 26 && physicsSecondYearMarks >= 21 && chemistrySecondYearMarks >= 21)
{
NSLog(@"ram passed");
}else
{
NSLog(@"ram failed");
}
NSLog(@"ram totalMarks=%i",ramTotalMarks);
NSLog(@"ram percentage= %f",ramPercentage);
if (ramPercentage>=70) {
NSLog(@"ram got Distinction");
} else if (ramPercentage>=60 && ramPercentage<70){
NSLog(@"ram got First Class");
} else if (ramPercentage>=50 && ramPercentage<60) {
NSLog(@"ram got Second Class");
} else if (ramPercentage<50){
NSLog(@"ram got Third Class");
}
}
void ramanaInterMarks()
{
unsigned short int sanskritFirstYearMarks=98;
unsigned short int englishFirstYearMarks=65;
unsigned short int mathsAFirstYearMarks=54;
unsigned short int mathsBFirstYearMarks=43;
unsigned short int physicsFirstYearMarks=48;
unsigned short int chemistryFirstYearMarks=41;
unsigned short int sanskritSecondYearMarks=98;
unsigned short int englishSecondYearMarks=75;
unsigned short int mathsASecondYearMarks=44;
unsigned short int mathsBSecondYearMarks=43;
unsigned short int physicsSecondYearMarks=48;
unsigned short int chemistrySecondYearMarks=54;
unsigned short int physicsPracMarks=25;
unsigned short int chemistryPracMarks=28;
unsigned short int ramanaTotalMarks=sanskritFirstYearMarks+sanskritSecondYearMarks+englishFirstYearMarks+englishSecondYearMarks+mathsAFirstYearMarks+mathsASecondYearMarks+mathsBFirstYearMarks+mathsBSecondYearMarks+physicsPracMarks+chemistryPracMarks;
float ramanaPercentage=(float)ramanaTotalMarks/10;
NSLog(@"ramana marks in sanskritFirstYear=%i\n englishFirstYear=%i\n mathsAFirstYearMarks=%i\n mathsBFirstYear=%i\n physicsFirstYear=%i\n chemistryFirstYear=%i\n sanskritSecondYear=%i\n englishSecondYear=%i\n mathsASecndYear=%i\n mathsBSecondYear=%i\n physicsSecondYear=%i\n chemistrySecondYear=%i\n physics Pratical Marks=%i\n chemistry Pratical Marks=%i\n",sanskritFirstYearMarks,englishFirstYearMarks,mathsAFirstYearMarks,mathsBFirstYearMarks,physicsFirstYearMarks,chemistryFirstYearMarks,sanskritSecondYearMarks,englishSecondYearMarks,mathsASecondYearMarks,mathsBSecondYearMarks,physicsSecondYearMarks,chemistrySecondYearMarks,physicsPracMarks,chemistryPracMarks);
if (sanskritFirstYearMarks >= 35 && englishFirstYearMarks >= 35 && mathsAFirstYearMarks >= 26 && mathsBFirstYearMarks >= 26 && physicsFirstYearMarks >= 21 && chemistryFirstYearMarks >= 21 && sanskritSecondYearMarks >= 35 && englishSecondYearMarks >= 35 && mathsASecondYearMarks >= 26 && mathsBSecondYearMarks >= 26 && physicsSecondYearMarks >= 21 && chemistrySecondYearMarks >= 21)
{
NSLog(@"ramana passed");
}else
{
NSLog(@"ramana failed");
}
NSLog(@"ramana totalMarks=%i",ramanaTotalMarks);
NSLog(@"ramana percentage= %f",ramanaPercentage);
if (ramanaPercentage>=70) {
NSLog(@"ramana got Distinction");
} else if (ramanaPercentage>=60 && ramanaPercentage<70){
NSLog(@"ramana got First Class");
} else if (ramanaPercentage>=50 && ramanaPercentage<60) {
NSLog(@"ramana got Second Class");
} else if (ramanaPercentage<50){
NSLog(@"ramana got Third Class");
}
}
void swathiInterMarks()
{
unsigned short int sanskritFirstYearMarks=98;
unsigned short int englishFirstYearMarks=75;
unsigned short int mathsAFirstYearMarks=74;
unsigned short int mathsBFirstYearMarks=43;
unsigned short int physicsFirstYearMarks=48;
unsigned short int chemistryFirstYearMarks=51;
unsigned short int sanskritSecondYearMarks=98;
unsigned short int englishSecondYearMarks=45;
unsigned short int mathsASecondYearMarks=74;
unsigned short int mathsBSecondYearMarks=73;
unsigned short int physicsSecondYearMarks=58;
unsigned short int chemistrySecondYearMarks=51;
unsigned short int physicsPracMarks=25;
unsigned short int chemistryPracMarks=28;
unsigned short int swathiTotalMarks=sanskritFirstYearMarks+sanskritSecondYearMarks+englishFirstYearMarks+englishSecondYearMarks+mathsAFirstYearMarks+mathsASecondYearMarks+mathsBFirstYearMarks+mathsBSecondYearMarks+physicsPracMarks+chemistryPracMarks;
float swathiPercentage=(float)swathiTotalMarks/10;
NSLog(@"swathi marks in sanskritFirstYear=%i\n englishFirstYear=%i\n mathsAFirstYearMarks=%i\n mathsBFirstYear=%i\n physicsFirstYear=%i\n chemistryFirstYear=%i\n sanskritSecondYear=%i\n englishSecondYear=%i\n mathsASecndYear=%i\n mathsBSecondYear=%i\n physicsSecondYear=%i\n chemistrySecondYear=%i\n physics Pratical Marks=%i\n chemistry Pratical Marks=%i\n",sanskritFirstYearMarks,englishFirstYearMarks,mathsAFirstYearMarks,mathsBFirstYearMarks,physicsFirstYearMarks,chemistryFirstYearMarks,sanskritSecondYearMarks,englishSecondYearMarks,mathsASecondYearMarks,mathsBSecondYearMarks,physicsSecondYearMarks,chemistrySecondYearMarks,physicsPracMarks,chemistryPracMarks);
if (sanskritFirstYearMarks >= 35 && englishFirstYearMarks >= 35 && mathsAFirstYearMarks >= 26 && mathsBFirstYearMarks >= 26 && physicsFirstYearMarks >= 21 && chemistryFirstYearMarks >= 21 && sanskritSecondYearMarks >= 35 && englishSecondYearMarks >= 35 && mathsASecondYearMarks >= 26 && mathsBSecondYearMarks >= 26 && physicsSecondYearMarks >= 21 && chemistrySecondYearMarks >= 21)
{
NSLog(@"swathi passed");
}else
{
NSLog(@"swathi failed");
}
NSLog(@"swathi totalMarks=%i",swathiTotalMarks);
NSLog(@"swathi percentage= %f",swathiPercentage);
if (swathiPercentage>=70) {
NSLog(@"swathi got Distinction");
} else if (swathiPercentage>=60 && swathiPercentage<70){
NSLog(@"swathi got First Class");
} else if (swathiPercentage>=50 && swathiPercentage<60) {
NSLog(@"swathi got Second Class");
} else if (swathiPercentage<50){
NSLog(@"swathi got Third Class");
}
}
void tejaInterMarks()
{
unsigned short int sanskritFirstYearMarks=98;
unsigned short int englishFirstYearMarks=85;
unsigned short int mathsAFirstYearMarks=74;
unsigned short int mathsBFirstYearMarks=73;
unsigned short int physicsFirstYearMarks=18;
unsigned short int chemistryFirstYearMarks=11;
unsigned short int sanskritSecondYearMarks=98;
unsigned short int englishSecondYearMarks=45;
unsigned short int mathsASecondYearMarks=74;
unsigned short int mathsBSecondYearMarks=53;
unsigned short int physicsSecondYearMarks=58;
unsigned short int chemistrySecondYearMarks=51;
unsigned short int physicsPracMarks=25;
unsigned short int chemistryPracMarks=28;
unsigned short int tejaTotalMarks=sanskritFirstYearMarks+sanskritSecondYearMarks+englishFirstYearMarks+englishSecondYearMarks+mathsAFirstYearMarks+mathsASecondYearMarks+mathsBFirstYearMarks+mathsBSecondYearMarks+physicsPracMarks+chemistryPracMarks;
float tejaPercentage=(float)tejaTotalMarks/10;
NSLog(@"teja marks in sanskritFirstYear=%i\n englishFirstYear=%i\n mathsAFirstYearMarks=%i\n mathsBFirstYear=%i\n physicsFirstYear=%i\n chemistryFirstYear=%i\n sanskritSecondYear=%i\n englishSecondYear=%i\n mathsASecndYear=%i\n mathsBSecondYear=%i\n physicsSecondYear=%i\n chemistrySecondYear=%i\n physics Pratical Marks=%i\n chemistry Pratical Marks=%i\n",sanskritFirstYearMarks,englishFirstYearMarks,mathsAFirstYearMarks,mathsBFirstYearMarks,physicsFirstYearMarks,chemistryFirstYearMarks,sanskritSecondYearMarks,englishSecondYearMarks,mathsASecondYearMarks,mathsBSecondYearMarks,physicsSecondYearMarks,chemistrySecondYearMarks,physicsPracMarks,chemistryPracMarks);
if (sanskritFirstYearMarks >= 35 && englishFirstYearMarks >= 35 && mathsAFirstYearMarks >= 26 && mathsBFirstYearMarks >= 26 && physicsFirstYearMarks >= 21 && chemistryFirstYearMarks >= 21 && sanskritSecondYearMarks >= 35 && englishSecondYearMarks >= 35 && mathsASecondYearMarks >= 26 && mathsBSecondYearMarks >= 26 && physicsSecondYearMarks >= 21 && chemistrySecondYearMarks >= 21)
{
NSLog(@"teja passed");
}else
{
NSLog(@"teja failed");
}
NSLog(@"teja totalMarks=%i",tejaTotalMarks);
NSLog(@"teja percentage= %f",tejaPercentage);
if (tejaPercentage>=70) {
NSLog(@"teja got Distinction");
} else if (tejaPercentage>=60 && tejaPercentage<70){
NSLog(@"teja got First Class");
} else if (tejaPercentage>=50 && tejaPercentage<60) {
NSLog(@"teja got Second Class");
} else if (tejaPercentage<50){
NSLog(@"teja got Third Class");
}
}
void vijayInterMarks()
{
unsigned short int sanskritFirstYearMarks=98;
unsigned short int englishFirstYearMarks=45;
unsigned short int mathsAFirstYearMarks=44;
unsigned short int mathsBFirstYearMarks=43;
unsigned short int physicsFirstYearMarks=58;
unsigned short int chemistryFirstYearMarks=51;
unsigned short int sanskritSecondYearMarks=98;
unsigned short int englishSecondYearMarks=75;
unsigned short int mathsASecondYearMarks=74;
unsigned short int mathsBSecondYearMarks=73;
unsigned short int physicsSecondYearMarks=58;
unsigned short int chemistrySecondYearMarks=51;
unsigned short int physicsPracMarks=25;
unsigned short int chemistryPracMarks=28;
unsigned short int vijayTotalMarks=sanskritFirstYearMarks+sanskritSecondYearMarks+englishFirstYearMarks+englishSecondYearMarks+mathsAFirstYearMarks+mathsASecondYearMarks+mathsBFirstYearMarks+mathsBSecondYearMarks+physicsPracMarks+chemistryPracMarks;
float vijayPercentage=(float)vijayTotalMarks/10;
NSLog(@"vijay marks in sanskritFirstYear=%i\n englishFirstYear=%i\n mathsAFirstYearMarks=%i\n mathsBFirstYear=%i\n physicsFirstYear=%i\n chemistryFirstYear=%i\n sanskritSecondYear=%i\n englishSecondYear=%i\n mathsASecndYear=%i\n mathsBSecondYear=%i\n physicsSecondYear=%i\n chemistrySecondYear=%i\n physics Pratical Marks=%i\n chemistry Pratical Marks=%i\n",sanskritFirstYearMarks,englishFirstYearMarks,mathsAFirstYearMarks,mathsBFirstYearMarks,physicsFirstYearMarks,chemistryFirstYearMarks,sanskritSecondYearMarks,englishSecondYearMarks,mathsASecondYearMarks,mathsBSecondYearMarks,physicsSecondYearMarks,chemistrySecondYearMarks,physicsPracMarks,chemistryPracMarks);
if (sanskritFirstYearMarks >= 35 && englishFirstYearMarks >= 35 && mathsAFirstYearMarks >= 26 && mathsBFirstYearMarks >= 26 && physicsFirstYearMarks >= 21 && chemistryFirstYearMarks >= 21 && sanskritSecondYearMarks >= 35 && englishSecondYearMarks >= 35 && mathsASecondYearMarks >= 26 && mathsBSecondYearMarks >= 26 && physicsSecondYearMarks >= 21 && chemistrySecondYearMarks >= 21)
{
NSLog(@"vijay passed");
}else
{
NSLog(@"vijay failed");
}
NSLog(@"vijay totalMarks=%i",vijayTotalMarks);
NSLog(@"vijay percentage= %f",vijayPercentage);
if (vijayPercentage>=70) {
NSLog(@"vijay got Distinction");
} else if (vijayPercentage>=60 && vijayPercentage<70){
NSLog(@"vijay got First Class");
} else if (vijayPercentage>=50 && vijayPercentage<60) {
NSLog(@"vijay got Second Class");
} else if (vijayPercentage<50){
NSLog(@"vijay got Third Class");
}
}
void kumarInterMarks()
{
unsigned short int sanskritFirstYearMarks=78;
unsigned short int englishFirstYearMarks=45;
unsigned short int mathsAFirstYearMarks=24;
unsigned short int mathsBFirstYearMarks=23;
unsigned short int physicsFirstYearMarks=58;
unsigned short int chemistryFirstYearMarks=51;
unsigned short int sanskritSecondYearMarks=98;
unsigned short int englishSecondYearMarks=75;
unsigned short int mathsASecondYearMarks=44;
unsigned short int mathsBSecondYearMarks=43;
unsigned short int physicsSecondYearMarks=58;
unsigned short int chemistrySecondYearMarks=51;
unsigned short int physicsPracMarks=25;
unsigned short int chemistryPracMarks=28;
unsigned short int kumarTotalMarks=sanskritFirstYearMarks+sanskritSecondYearMarks+englishFirstYearMarks+englishSecondYearMarks+mathsAFirstYearMarks+mathsASecondYearMarks+mathsBFirstYearMarks+mathsBSecondYearMarks+physicsPracMarks+chemistryPracMarks;
float kumarPercentage=(float)kumarTotalMarks/10;
NSLog(@"kumar marks in sanskritFirstYear=%i\n englishFirstYear=%i\n mathsAFirstYearMarks=%i\n mathsBFirstYear=%i\n physicsFirstYear=%i\n chemistryFirstYear=%i\n sanskritSecondYear=%i\n englishSecondYear=%i\n mathsASecndYear=%i\n mathsBSecondYear=%i\n physicsSecondYear=%i\n chemistrySecondYear=%i\n physics Pratical Marks=%i\n chemistry Pratical Marks=%i\n",sanskritFirstYearMarks,englishFirstYearMarks,mathsAFirstYearMarks,mathsBFirstYearMarks,physicsFirstYearMarks,chemistryFirstYearMarks,sanskritSecondYearMarks,englishSecondYearMarks,mathsASecondYearMarks,mathsBSecondYearMarks,physicsSecondYearMarks,chemistrySecondYearMarks,physicsPracMarks,chemistryPracMarks);
if (sanskritFirstYearMarks >= 35 && englishFirstYearMarks >= 35 && mathsAFirstYearMarks >= 26 && mathsBFirstYearMarks >= 26 && physicsFirstYearMarks >= 21 && chemistryFirstYearMarks >= 21 && sanskritSecondYearMarks >= 35 && englishSecondYearMarks >= 35 && mathsASecondYearMarks >= 26 && mathsBSecondYearMarks >= 26 && physicsSecondYearMarks >= 21 && chemistrySecondYearMarks >= 21)
{
NSLog(@"kumar passed");
}else
{
NSLog(@"kumar failed");
}
NSLog(@"kumar totalMarks=%i",kumarTotalMarks);
NSLog(@"kumar percentage= %f",kumarPercentage);
if (kumarPercentage>=70) {
NSLog(@"kumar got Distinction");
} else if (kumarPercentage>=60 && kumarPercentage<70){
NSLog(@"kumar got First Class");
} else if (kumarPercentage>=50 && kumarPercentage<60) {
NSLog(@"kumar got Second Class");
} else if (kumarPercentage<50){
NSLog(@"kumar got Third Class");
}
}
void vinayInterMarks()
{
unsigned short int sanskritFirstYearMarks=48;
unsigned short int englishFirstYearMarks=45;
unsigned short int mathsAFirstYearMarks=74;
unsigned short int mathsBFirstYearMarks=73;
unsigned short int physicsFirstYearMarks=58;
unsigned short int chemistryFirstYearMarks=51;
unsigned short int sanskritSecondYearMarks=98;
unsigned short int englishSecondYearMarks=75;
unsigned short int mathsASecondYearMarks=74;
unsigned short int mathsBSecondYearMarks=73;
unsigned short int physicsSecondYearMarks=48;
unsigned short int chemistrySecondYearMarks=41;
unsigned short int physicsPracMarks=25;
unsigned short int chemistryPracMarks=28;
unsigned short int vinayTotalMarks=sanskritFirstYearMarks+sanskritSecondYearMarks+englishFirstYearMarks+englishSecondYearMarks+mathsAFirstYearMarks+mathsASecondYearMarks+mathsBFirstYearMarks+mathsBSecondYearMarks+physicsPracMarks+chemistryPracMarks;
float vinayPercentage=(float)vinayTotalMarks/10;
NSLog(@"vinay marks in sanskritFirstYear=%i\n englishFirstYear=%i\n mathsAFirstYearMarks=%i\n mathsBFirstYear=%i\n physicsFirstYear=%i\n chemistryFirstYear=%i\n sanskritSecondYear=%i\n englishSecondYear=%i\n mathsASecndYear=%i\n mathsBSecondYear=%i\n physicsSecondYear=%i\n chemistrySecondYear=%i\n physics Pratical Marks=%i\n chemistry Pratical Marks=%i\n",sanskritFirstYearMarks,englishFirstYearMarks,mathsAFirstYearMarks,mathsBFirstYearMarks,physicsFirstYearMarks,chemistryFirstYearMarks,sanskritSecondYearMarks,englishSecondYearMarks,mathsASecondYearMarks,mathsBSecondYearMarks,physicsSecondYearMarks,chemistrySecondYearMarks,physicsPracMarks,chemistryPracMarks);
if (sanskritFirstYearMarks >= 35 && englishFirstYearMarks >= 35 && mathsAFirstYearMarks >= 26 && mathsBFirstYearMarks >= 26 && physicsFirstYearMarks >= 21 && chemistryFirstYearMarks >= 21 && sanskritSecondYearMarks >= 35 && englishSecondYearMarks >= 35 && mathsASecondYearMarks >= 26 && mathsBSecondYearMarks >= 26 && physicsSecondYearMarks >= 21 && chemistrySecondYearMarks >= 21)
{
NSLog(@"vinay passed");
}else
{
NSLog(@"vinay failed");
}
NSLog(@"vinay totalMarks=%i",vinayTotalMarks);
NSLog(@"vinay percentage= %f",vinayPercentage);
if (vinayPercentage>=70) {
NSLog(@"vinay got Distinction");
} else if (vinayPercentage>=60 && vinayPercentage<70){
NSLog(@"vinay got First Class");
} else if (vinayPercentage>=50 && vinayPercentage<60) {
NSLog(@"vinay got Second Class");
} else if (vinayPercentage<50){
NSLog(@"vinay got Third Class");
}
}
void saiInterMarks()
{
unsigned short int sanskritFirstYearMarks=98;
unsigned short int englishFirstYearMarks=85;
unsigned short int mathsAFirstYearMarks=54;
unsigned short int mathsBFirstYearMarks=53;
unsigned short int physicsFirstYearMarks=58;
unsigned short int chemistryFirstYearMarks=51;
unsigned short int sanskritSecondYearMarks=98;
unsigned short int englishSecondYearMarks=75;
unsigned short int mathsASecondYearMarks=74;
unsigned short int mathsBSecondYearMarks=43;
unsigned short int physicsSecondYearMarks=48;
unsigned short int chemistrySecondYearMarks=51;
unsigned short int physicsPracMarks=25;
unsigned short int chemistryPracMarks=28;
unsigned short int saiTotalMarks=sanskritFirstYearMarks+sanskritSecondYearMarks+englishFirstYearMarks+englishSecondYearMarks+mathsAFirstYearMarks+mathsASecondYearMarks+mathsBFirstYearMarks+mathsBSecondYearMarks+physicsPracMarks+chemistryPracMarks;
float saiPercentage=(float)saiTotalMarks/10;
NSLog(@"sai marks in sanskritFirstYear=%i\n englishFirstYear=%i\n mathsAFirstYearMarks=%i\n mathsBFirstYear=%i\n physicsFirstYear=%i\n chemistryFirstYear=%i\n sanskritSecondYear=%i\n englishSecondYear=%i\n mathsASecndYear=%i\n mathsBSecondYear=%i\n physicsSecondYear=%i\n chemistrySecondYear=%i\n physics Pratical Marks=%i\n chemistry Pratical Marks=%i\n",sanskritFirstYearMarks,englishFirstYearMarks,mathsAFirstYearMarks,mathsBFirstYearMarks,physicsFirstYearMarks,chemistryFirstYearMarks,sanskritSecondYearMarks,englishSecondYearMarks,mathsASecondYearMarks,mathsBSecondYearMarks,physicsSecondYearMarks,chemistrySecondYearMarks,physicsPracMarks,chemistryPracMarks);
if (sanskritFirstYearMarks >= 35 && englishFirstYearMarks >= 35 && mathsAFirstYearMarks >= 26 && mathsBFirstYearMarks >= 26 && physicsFirstYearMarks >= 21 && chemistryFirstYearMarks >= 21 && sanskritSecondYearMarks >= 35 && englishSecondYearMarks >= 35 && mathsASecondYearMarks >= 26 && mathsBSecondYearMarks >= 26 && physicsSecondYearMarks >= 21 && chemistrySecondYearMarks >= 21)
{
NSLog(@"sai passed");
}else
{
NSLog(@"sai failed");
}
NSLog(@"sai totalMarks=%i",saiTotalMarks);
NSLog(@"sai percentage= %f",saiPercentage);
if (saiPercentage>=70) {
NSLog(@"sai got Distinction");
} else if (saiPercentage>=60 && saiPercentage<70){
NSLog(@"sai got First Class");
} else if (saiPercentage>=50 && saiPercentage<60) {
NSLog(@"sai got Second Class");
} else if (saiPercentage<50){
NSLog(@"sai got Third Class");
}
}
void ajayInterMarks()
{
unsigned short int sanskritFirstYearMarks=98;
unsigned short int englishFirstYearMarks=85;
unsigned short int mathsAFirstYearMarks=74;
unsigned short int mathsBFirstYearMarks=73;
unsigned short int physicsFirstYearMarks=38;
unsigned short int chemistryFirstYearMarks=31;
unsigned short int sanskritSecondYearMarks=98;
unsigned short int englishSecondYearMarks=75;
unsigned short int mathsASecondYearMarks=74;
unsigned short int mathsBSecondYearMarks=43;
unsigned short int physicsSecondYearMarks=58;
unsigned short int chemistrySecondYearMarks=11;
unsigned short int physicsPracMarks=25;
unsigned short int chemistryPracMarks=28;
unsigned short int ajayTotalMarks=sanskritFirstYearMarks+sanskritSecondYearMarks+englishFirstYearMarks+englishSecondYearMarks+mathsAFirstYearMarks+mathsASecondYearMarks+mathsBFirstYearMarks+mathsBSecondYearMarks+physicsPracMarks+chemistryPracMarks;
float ajayPercentage=(float)ajayTotalMarks/10;
NSLog(@"ajay marks in sanskritFirstYear=%i\n englishFirstYear=%i\n mathsAFirstYearMarks=%i\n mathsBFirstYear=%i\n physicsFirstYear=%i\n chemistryFirstYear=%i\n sanskritSecondYear=%i\n englishSecondYear=%i\n mathsASecndYear=%i\n mathsBSecondYear=%i\n physicsSecondYear=%i\n chemistrySecondYear=%i\n physics Pratical Marks=%i\n chemistry Pratical Marks=%i\n",sanskritFirstYearMarks,englishFirstYearMarks,mathsAFirstYearMarks,mathsBFirstYearMarks,physicsFirstYearMarks,chemistryFirstYearMarks,sanskritSecondYearMarks,englishSecondYearMarks,mathsASecondYearMarks,mathsBSecondYearMarks,physicsSecondYearMarks,chemistrySecondYearMarks,physicsPracMarks,chemistryPracMarks);
if (sanskritFirstYearMarks >= 35 && englishFirstYearMarks >= 35 && mathsAFirstYearMarks >= 26 && mathsBFirstYearMarks >= 26 && physicsFirstYearMarks >= 21 && chemistryFirstYearMarks >= 21 && sanskritSecondYearMarks >= 35 && englishSecondYearMarks >= 35 && mathsASecondYearMarks >= 26 && mathsBSecondYearMarks >= 26 && physicsSecondYearMarks >= 21 && chemistrySecondYearMarks >= 21)
{
NSLog(@"ajay passed");
}else
{
NSLog(@"ajay failed");
}
NSLog(@"ajay totalMarks=%i",ajayTotalMarks);
NSLog(@"ajay percentage= %f",ajayPercentage);
if (ajayPercentage>=70) {
NSLog(@"ajay got Distinction");
} else if (ajayPercentage>=60 && ajayPercentage<70){
NSLog(@"ajay got First Class");
} else if (ajayPercentage>=50 && ajayPercentage<60) {
NSLog(@"ajay got Second Class");
} else if (ajayPercentage<50){
NSLog(@"ajay got Third Class");
}
}
void vickyInterMarks()
{
unsigned short int sanskritFirstYearMarks=98;
unsigned short int englishFirstYearMarks=85;
unsigned short int mathsAFirstYearMarks=74;
unsigned short int mathsBFirstYearMarks=73;
unsigned short int physicsFirstYearMarks=58;
unsigned short int chemistryFirstYearMarks=51;
unsigned short int sanskritSecondYearMarks=98;
unsigned short int englishSecondYearMarks=55;
unsigned short int mathsASecondYearMarks=64;
unsigned short int mathsBSecondYearMarks=73;
unsigned short int physicsSecondYearMarks=58;
unsigned short int chemistrySecondYearMarks=51;
unsigned short int physicsPracMarks=25;
unsigned short int chemistryPracMarks=28;
unsigned short int vickyTotalMarks=sanskritFirstYearMarks+sanskritSecondYearMarks+englishFirstYearMarks+englishSecondYearMarks+mathsAFirstYearMarks+mathsASecondYearMarks+mathsBFirstYearMarks+mathsBSecondYearMarks+physicsPracMarks+chemistryPracMarks;
float vickyPercentage=(float)vickyTotalMarks/10;
NSLog(@"vicky marks in sanskritFirstYear=%i\n englishFirstYear=%i\n mathsAFirstYearMarks=%i\n mathsBFirstYear=%i\n physicsFirstYear=%i\n chemistryFirstYear=%i\n sanskritSecondYear=%i\n englishSecondYear=%i\n mathsASecndYear=%i\n mathsBSecondYear=%i\n physicsSecondYear=%i\n chemistrySecondYear=%i\n physics Pratical Marks=%i\n chemistry Pratical Marks=%i\n",sanskritFirstYearMarks,englishFirstYearMarks,mathsAFirstYearMarks,mathsBFirstYearMarks,physicsFirstYearMarks,chemistryFirstYearMarks,sanskritSecondYearMarks,englishSecondYearMarks,mathsASecondYearMarks,mathsBSecondYearMarks,physicsSecondYearMarks,chemistrySecondYearMarks,physicsPracMarks,chemistryPracMarks);
if (sanskritFirstYearMarks >= 35 && englishFirstYearMarks >= 35 && mathsAFirstYearMarks >= 26 && mathsBFirstYearMarks >= 26 && physicsFirstYearMarks >= 21 && chemistryFirstYearMarks >= 21 && sanskritSecondYearMarks >= 35 && englishSecondYearMarks >= 35 && mathsASecondYearMarks >= 26 && mathsBSecondYearMarks >= 26 && physicsSecondYearMarks >= 21 && chemistrySecondYearMarks >= 21)
{
NSLog(@"vicky passed");
}else
{
NSLog(@"vicky failed");
}
NSLog(@"vicky totalMarks=%i",vickyTotalMarks);
NSLog(@"vicky percentage= %f",vickyPercentage);
if (vickyPercentage>=70) {
NSLog(@"vicky got Distinction");
} else if (vickyPercentage>=60 && vickyPercentage<70){
NSLog(@"vicky got First Class");
} else if (vickyPercentage>=50 && vickyPercentage<60) {
NSLog(@"vicky got Second Class");
} else if (vickyPercentage<50){
NSLog(@"vicky got Third Class");
}
}
void sunnyInterMarks()
{
unsigned short int sanskritFirstYearMarks=98;
unsigned short int englishFirstYearMarks=65;
unsigned short int mathsAFirstYearMarks=64;
unsigned short int mathsBFirstYearMarks=53;
unsigned short int physicsFirstYearMarks=58;
unsigned short int chemistryFirstYearMarks=51;
unsigned short int sanskritSecondYearMarks=98;
unsigned short int englishSecondYearMarks=95;
unsigned short int mathsASecondYearMarks=74;
unsigned short int mathsBSecondYearMarks=73;
unsigned short int physicsSecondYearMarks=58;
unsigned short int chemistrySecondYearMarks=51;
unsigned short int physicsPracMarks=25;
unsigned short int chemistryPracMarks=28;
unsigned short int sunnyTotalMarks=sanskritFirstYearMarks+sanskritSecondYearMarks+englishFirstYearMarks+englishSecondYearMarks+mathsAFirstYearMarks+mathsASecondYearMarks+mathsBFirstYearMarks+mathsBSecondYearMarks+physicsPracMarks+chemistryPracMarks;
float sunnyPercentage=(float)sunnyTotalMarks/10;
NSLog(@"sunny marks in sanskritFirstYear=%i\n englishFirstYear=%i\n mathsAFirstYearMarks=%i\n mathsBFirstYear=%i\n physicsFirstYear=%i\n chemistryFirstYear=%i\n sanskritSecondYear=%i\n englishSecondYear=%i\n mathsASecndYear=%i\n mathsBSecondYear=%i\n physicsSecondYear=%i\n chemistrySecondYear=%i\n physics Pratical Marks=%i\n chemistry Pratical Marks=%i\n",sanskritFirstYearMarks,englishFirstYearMarks,mathsAFirstYearMarks,mathsBFirstYearMarks,physicsFirstYearMarks,chemistryFirstYearMarks,sanskritSecondYearMarks,englishSecondYearMarks,mathsASecondYearMarks,mathsBSecondYearMarks,physicsSecondYearMarks,chemistrySecondYearMarks,physicsPracMarks,chemistryPracMarks);
if (sanskritFirstYearMarks >= 35 && englishFirstYearMarks >= 35 && mathsAFirstYearMarks >= 26 && mathsBFirstYearMarks >= 26 && physicsFirstYearMarks >= 21 && chemistryFirstYearMarks >= 21 && sanskritSecondYearMarks >= 35 && englishSecondYearMarks >= 35 && mathsASecondYearMarks >= 26 && mathsBSecondYearMarks >= 26 && physicsSecondYearMarks >= 21 && chemistrySecondYearMarks >= 21)
{
NSLog(@"sunny passed");
}else
{
NSLog(@"sunny failed");
}
NSLog(@"sunny totalMarks=%i",sunnyTotalMarks);
NSLog(@"sunny percentage= %f",sunnyPercentage);
if (sunnyPercentage>=70) {
NSLog(@"sunny got Distinction");
} else if (sunnyPercentage>=60 && sunnyPercentage<70){
NSLog(@"sunny got First Class");
} else if (sunnyPercentage>=50 && sunnyPercentage<60) {
NSLog(@"sunny got Second Class");
} else if (sunnyPercentage<50){
NSLog(@"sunny got Third Class");
}
}
void praveenInterMarks()
{
unsigned short int sanskritFirstYearMarks=98;
unsigned short int englishFirstYearMarks=55;
unsigned short int mathsAFirstYearMarks=74;
unsigned short int mathsBFirstYearMarks=73;
unsigned short int physicsFirstYearMarks=58;
unsigned short int chemistryFirstYearMarks=51;
unsigned short int sanskritSecondYearMarks=98;
unsigned short int englishSecondYearMarks=75;
unsigned short int mathsASecondYearMarks=74;
unsigned short int mathsBSecondYearMarks=73;
unsigned short int physicsSecondYearMarks=48;
unsigned short int chemistrySecondYearMarks=51;
unsigned short int physicsPracMarks=25;
unsigned short int chemistryPracMarks=28;
unsigned short int praveenTotalMarks=sanskritFirstYearMarks+sanskritSecondYearMarks+englishFirstYearMarks+englishSecondYearMarks+mathsAFirstYearMarks+mathsASecondYearMarks+mathsBFirstYearMarks+mathsBSecondYearMarks+physicsPracMarks+chemistryPracMarks;
float praveenPercentage=(float)praveenTotalMarks/10;
NSLog(@"praveen marks in sanskritFirstYear=%i\n englishFirstYear=%i\n mathsAFirstYearMarks=%i\n mathsBFirstYear=%i\n physicsFirstYear=%i\n chemistryFirstYear=%i\n sanskritSecondYear=%i\n englishSecondYear=%i\n mathsASecndYear=%i\n mathsBSecondYear=%i\n physicsSecondYear=%i\n chemistrySecondYear=%i\n physics Pratical Marks=%i\n chemistry Pratical Marks=%i\n",sanskritFirstYearMarks,englishFirstYearMarks,mathsAFirstYearMarks,mathsBFirstYearMarks,physicsFirstYearMarks,chemistryFirstYearMarks,sanskritSecondYearMarks,englishSecondYearMarks,mathsASecondYearMarks,mathsBSecondYearMarks,physicsSecondYearMarks,chemistrySecondYearMarks,physicsPracMarks,chemistryPracMarks);
if (sanskritFirstYearMarks >= 35 && englishFirstYearMarks >= 35 && mathsAFirstYearMarks >= 26 && mathsBFirstYearMarks >= 26 && physicsFirstYearMarks >= 21 && chemistryFirstYearMarks >= 21 && sanskritSecondYearMarks >= 35 && englishSecondYearMarks >= 35 && mathsASecondYearMarks >= 26 && mathsBSecondYearMarks >= 26 && physicsSecondYearMarks >= 21 && chemistrySecondYearMarks >= 21)
{
NSLog(@"praveen passed");
}else
{
NSLog(@"praveen failed");
}
NSLog(@"praveen totalMarks=%i",praveenTotalMarks);
NSLog(@"praveen percentage= %f",praveenPercentage);
if (praveenPercentage>=70) {
NSLog(@"praveen got Distinction");
} else if (praveenPercentage>=60 && praveenPercentage<70){
NSLog(@"praveen got First Class");
} else if (praveenPercentage>=50 && praveenPercentage<60) {
NSLog(@"praveen got Second Class");
} else if (praveenPercentage<50){
NSLog(@"praveen got Third Class");
}
}
void kiranInterMarks()
{
unsigned short int sanskritFirstYearMarks=78;
unsigned short int englishFirstYearMarks=75;
unsigned short int mathsAFirstYearMarks=74;
unsigned short int mathsBFirstYearMarks=73;
unsigned short int physicsFirstYearMarks=58;
unsigned short int chemistryFirstYearMarks=51;
unsigned short int sanskritSecondYearMarks=78;
unsigned short int englishSecondYearMarks=75;
unsigned short int mathsASecondYearMarks=74;
unsigned short int mathsBSecondYearMarks=73;
unsigned short int physicsSecondYearMarks=58;
unsigned short int chemistrySecondYearMarks=51;
unsigned short int physicsPracMarks=25;
unsigned short int chemistryPracMarks=28;
unsigned short int kiranTotalMarks=sanskritFirstYearMarks+sanskritSecondYearMarks+englishFirstYearMarks+englishSecondYearMarks+mathsAFirstYearMarks+mathsASecondYearMarks+mathsBFirstYearMarks+mathsBSecondYearMarks+physicsPracMarks+chemistryPracMarks;
float kiranPercentage=(float)kiranTotalMarks/10;
NSLog(@"kiran marks in sanskritFirstYear=%i\n englishFirstYear=%i\n mathsAFirstYearMarks=%i\n mathsBFirstYear=%i\n physicsFirstYear=%i\n chemistryFirstYear=%i\n sanskritSecondYear=%i\n englishSecondYear=%i\n mathsASecndYear=%i\n mathsBSecondYear=%i\n physicsSecondYear=%i\n chemistrySecondYear=%i\n physics Pratical Marks=%i\n chemistry Pratical Marks=%i\n",sanskritFirstYearMarks,englishFirstYearMarks,mathsAFirstYearMarks,mathsBFirstYearMarks,physicsFirstYearMarks,chemistryFirstYearMarks,sanskritSecondYearMarks,englishSecondYearMarks,mathsASecondYearMarks,mathsBSecondYearMarks,physicsSecondYearMarks,chemistrySecondYearMarks,physicsPracMarks,chemistryPracMarks);
if (sanskritFirstYearMarks >= 35 && englishFirstYearMarks >= 35 && mathsAFirstYearMarks >= 26 && mathsBFirstYearMarks >= 26 && physicsFirstYearMarks >= 21 && chemistryFirstYearMarks >= 21 && sanskritSecondYearMarks >= 35 && englishSecondYearMarks >= 35 && mathsASecondYearMarks >= 26 && mathsBSecondYearMarks >= 26 && physicsSecondYearMarks >= 21 && chemistrySecondYearMarks >= 21)
{
NSLog(@"kiran passed");
}else
{
NSLog(@"kiran failed");
}
NSLog(@"kiran totalMarks=%i",kiranTotalMarks);
NSLog(@"kiran percentage= %f",kiranPercentage);
if (kiranPercentage>=70) {
NSLog(@"kiran got Distinction");
} else if (kiranPercentage>=60 && kiranPercentage<70){
NSLog(@"kiran got First Class");
} else if (kiranPercentage>=50 && kiranPercentage<60) {
NSLog(@"kiran got Second Class");
} else if (kiranPercentage<50){
NSLog(@"kiran got Third Class");
}
}
int main(int argc, const char * argv[])
{
pavanInterMarks();
jyothiInterMarks();
swamyInterMarks();
maheshInterMarks();
anjaliInterMarks();
chiruInterMarks();
raviInterMarks();
rajuInterMarks();
dineshInterMarks();
harishInterMarks();
raghuInterMarks();
naveenInterMarks();
ramInterMarks();
ramanaInterMarks();
swathiInterMarks();
tejaInterMarks();
vijayInterMarks();
kumarInterMarks();
vinayInterMarks();
saiInterMarks();
ajayInterMarks();
vickyInterMarks();
sunnyInterMarks();
praveenInterMarks();
kiranInterMarks();
return 0;
}
Sign up here with your email
ConversionConversion EmoticonEmoticon