123 Eng

Engineering the engineers™


Latest Jobs   Forum Map

 


Home
Source Codes
Engineering Colleges

Training  Reports
Seminar Reports
Placement Papers

Forums

   Computer Science / IT
   Electronics
   Electrical
   Mechanical
   Chemical
   Civil

   CAT / MBA

   GMAT / Foreign MBA
Latest Jobs

Engineering Jobs / Technical Jobs
Management Jobs

Sitemap
Terms of use

Displaying  Source Code(s)  
 

 
Getting registeration numbers from given information

--------------------------------------------------------------------------------

Description : This program creates ROLL Numbers of Students
accordibg to the information provided and according to rules
of the instituion which in this case is punjab college of information
technology.



/************************************************************************
Programmer : Shagufta Hina<shagufta_hina@yahoo.com>
Language : CC++
Description: This program creates ROLL Numbers of Students
accordibg to the information provided and according to rules
of the instituion which in this case is punjab college of information
technology.
************************************************************************/
/*------------------------------------------------------------------------
CREATING REGISTERATION NUMBERS OF STUDENTS
-----------------------------------------------------------------*/
/*************************************************************
HEADERS INCLUDED
/**************************************************************/

#include<iostream.h>
#include<string.h>
#include<conio.h>
#include<iomanip.h>
#include<process.h>
class regno
{
private:
char a[30],b,c[20],d[10],q[10],p[30],r[10],ne[30],ne1[30];
int n;
static int c1;
public:

void input()
{
textbackground(BLACK);
textcolor(CYAN);
clrscr();
int x=15,y=1,min1,min2,sec1,sec2,hr1,hr2;
_setcursortype(_NOCURSOR);



/*
Ûßßß Û ÛßßßÛ Ûßßß Ûßßß ÛßßÜ ÛßßÜ ÛßÜßÛ Ûßßß
Û Û ÛßßßÛ ßßßÛ ßßßÛ Û Û ÛßßÛ Û Û ßßßÛ
ßßßß ßßßß ß ß ßßßß ßßßß ßßß ßßß ß ß ßßßß
*/
textcolor(CYAN);
gotoxy(x,y+1);
cprintf("Ûßßß Û ÛßßßÛ Ûßßß Ûßßß ÛßßÜ ÛßßÜ ÛßÜßÛ Ûßßß");
gotoxy(x,y+2);
cprintf("Û Û ÛßßßÛ ßßßÛ ßßßÛ Û Û ÛßßÛ Û Û ßßßÛ");
gotoxy(x,y+3);
cprintf("ßßßß ßßßß ß ß ßßßß ßßßß ßßß ßßß ß ß ßßßß");
textcolor(CYAN);
for(int i=1;i<=79;i++){
gotoxy(i,1);
cprintf("ß");
gotoxy(i,48);
cprintf("Ü");
}
for(i=1;i<=48;i++){
gotoxy(1,i);
cprintf("Û");
gotoxy(79,i);
cprintf("Û");
}
gotoxy(26,6);
textcolor(CYAN+BLINK);
cprintf("ENTER DATA FOR REGESTRATION #S ");
gotoxy(15,10);
cout<< "enter city name Gujranwala,lahore" ;
gotoxy(15,11);
cout<<"Multan,Karachi,Faislabad,rawalpindi"<<endl;
gotoxy(13,11);
cprintf("->");
gotoxy(60,10);
cin>>a;
gotoxy(13,11);
cprintf(" ");
gotoxy(15,13);
cout<<"enter no of campuses in city max 7 " ;
gotoxy(13,13);
cprintf("->");
gotoxy(60,13);
cin>>b;
gotoxy(13,13);
cprintf(" ");

gotoxy(15,15);
cout<<"enter year 2001,2002,2003 ";
gotoxy(13,15);
cprintf("->");
gotoxy(60,15);
cin>>r;
gotoxy(13,15);
cprintf(" ");
gotoxy(15,17);
cout<<"enter term fall,spring,summer " ;
gotoxy(13,17);
cprintf("->");
gotoxy(60,17);
cin>>c;
gotoxy(13,17);
cprintf(" ");
gotoxy(15,19);
cout<<"enter program ,BSCS,MSCS,BBIT,MBIT " ;
gotoxy(13,19);
cprintf("->");
gotoxy(60,19);
cin>>d;
gotoxy(13,19);
cprintf(" ");

gotoxy(15,21);
cout<<"enter regestration# as 001'S form ";
gotoxy(13,21);
cprintf("->");
gotoxy(60,21);
cin>>p;
gotoxy(13,21);
cprintf(" ");
gotoxy(15,23);
textcolor(CYAN+BLINK);cprintf("Do you want to continue press y...... ");
}
void print()
{ int j=0;
{if(strcmp(a,"GUJRANWALA")==0||strcmp(a,"gujranwala")==0)
ne[j++]='G';
else
if((strcmp(a,"LAHORE")==0) ||strcmp(a,"lahore")==0)
ne[j++]='L';
else
if((strcmp(a,"KARACHI")==0)||strcmp(a,"karachi")==0)
ne[j++]='K';
if((strcmp(a,"MULTAN")==0) ||strcmp(a,"multan")==0)
ne[j++]='M';
else
if((strcmp(a,"FAISLABAD")==0)||strcmp(a,"faislabad")==0)
ne[j++]='F';
if((strcmp(a,"RAWALPINDI")==0) ||strcmp(a,"rawalpindi")==0)
ne[j++]='R';
else
if((strcmp(a,"PESHAWAR")==0)||strcmp(a,"peshawar")==0)
ne[j++]='P';

}
if(b=='1')
ne[j++]='1';
else
if(b=='2')
ne[j++]='2';
else
if(b=='3')
ne[j++]='3';
if(strcmp(c,"FALL")==0||strcmp(c,"fall")==0)
ne[j++]='F';
else
if((strcmp(c,"SPRING")==0) ||strcmp(c,"spring")==0)
ne[j++]='S';
else
if((strcmp(c,"SUMMER")==0)||strcmp(c,"summer")==0)
ne[j++]='s';
if(strcmp(r,"2001")==0)
{
ne[j++]='0';
ne[j++]='1';
}

else
if(strcmp(r,"2002")==0)
{
ne[j++]='0';
ne[j++]='2';}
else
if(strcmp(r,"2003")==0)
{
ne[j++]='0';
ne[j++]='3';
}
ne[j]='

 

Contribute content or training reports / feedback / Comments
job placement papers
All rights reserved © copyright 123ENG