Professional Documents
Culture Documents
mar = 0;
}
mb = get_integer("Enter your Maths 2 Marks","");
if( mb <= 100 && mb > 90 )
{
mbr = 10;
}
if( mb <= 90 && mb > 80 )
{
mbr = 9;
}
if( mb <= 80 && mb > 70 )
{
mbr = 8;
}
if( mb <= 70 && mb > 60 )
{
mbr = 7;
}
if( mb <= 60 && mb > 50 )
{
mbr = 6;
}
if (mb <= 50 && mb > 40)
{
mbr = 5;
}
else
{
mbr = 0;
}
phy = get_integer("Enter your Physics Marks","");
if( phy <= 100 && phy > 90 )
{
phyr = 10;
}
if( phy <= 90 && phy > 80 )
{
phyr = 9;
}
if( phy <= 80 && phy > 70 )
{
phyr = 8;
}
if( phy <= 70 && phy > 60 )
{
phyr = 7;
}
if( phy <= 60 && phy > 50 )
{
phyr = 6;
}
if (phy <= 50 && phy > 40)
{
phyr = 5;
}
else
{
phyr = 0;
}
ed = get_integer("Enter your Eng Drawing Marks","");
if( ed <= 100 && ed > 90 )
{
edr = 10;
}
if( ed <= 90 && ed > 80 )
{
edr = 9;
}
if( ed <= 80 && ed > 70 )
{
edr = 8;
}
if( ed <= 70 && ed > 60 )
{
edr = 7;
}
if( ed <= 60 && ed > 50 )
{
edr = 6;
}
if (ed <= 50 && ed > 40)
{
edr = 5;
}
else
{
edr = 0;
}
eth = get_integer("Enter your Ethics Marks","");
if( eth <= 100 && eth > 90 )
{
ethr = 10;
}
if( eth <= 90 && eth > 80 )
{
ethr = 9;
}
if( eth <= 80 && eth > 70 )
{
ethr = 8;
}
if( eth <= 70 && eth > 60 )
{
ethr = 7;
}
if( eth <= 60 && eth > 50 )
{
ethr = 6;
}
if (eth <= 50 && eth > 40)
{
ethr = 5;
}
else
{
ethr = 0;
}
result = ((engr*4)+(mar*4)+(mbr*4)+(phyr*4)+(edr*4)+(ethr*4))/24;
show_message("Click OK to know the expected points ");