Add to Favorites    Make Home Page 3561 Online  
 Language Categories  
 Our Services  

Home » C++ Home » Beginners / Lab Assignments Home » Getting registeration numbers from given information

A D V E R T I S E M E N T

Search Projects & Source Codes:

Title Getting registeration numbers from given information
Author Shagufta Hina
Author Email h1mano [at] yahoo.com
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.

Category C++ » Beginners / Lab Assignments
Hits 367257
Code Select and Copy the Code
/************************************************************************ 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]='

Related Source Codes

Script Name Author
Moving ball screen saver karlmarx
The Classic Game of Snake & Ladder Lakshmi Narayana .A
Railway seat reservation question which comes in sapient VyomWorld
To calculate percentile Ravi Mathur
Send to folder ANIMESH SAHU
Analog clock and calendar Nazia & Rida
HIGH/LOW GAME MOLLY ARORA
Data structure (stack Implimentation) Swapnil B Adsure
Memory Game AnirudhSanyal
Easy Calc Anirudh Sanyal
GK Quiz Anirudh Sanyal
Hangman Game Manish Jain
Snakeman Manish Jain
Full month Calendar Nigi
Cursor shapes nigi

A D V E R T I S E M E N T




Google Groups Subscribe to SourceCodesWorld - Techies Talk
Email:

Free eBook - Interview Questions: Get over 1,000 Interview Questions in an eBook for free when you join JobsAssist. Just click on the button below to join JobsAssist and you will immediately receive the Free eBook with thousands of Interview Questions in an ebook when you join.

New! Click here to Add your Code!


ASP Home | C Home | C++ Home | COBOL Home | Java Home | Pascal Home
Source Codes Home Page

 Advertisements  

Google Search

Google

Source Codes World.com is a part of Vyom Network.

Vyom Network : Web Hosting | Dedicated Server | Free SMS, GRE, GMAT, MBA | Online Exams | Freshers Jobs | Software Downloads | Interview Questions | Jobs, Discussions | Placement Papers | Free eBooks | Free eBooks | Free Business Info | Interview Questions | Free Tutorials | Arabic, French, German | IAS Preparation | Jokes, Songs, Fun | Free Classifieds | Free Recipes | Free Downloads | Bangalore Info | Tech Solutions | Project Outsourcing, Web Hosting | GATE Preparation | MBA Preparation | SAP Info | Software Testing | Google Logo Maker | Freshers Jobs

Sitemap | Privacy Policy | Terms and Conditions | Important Websites
Copyright ©2003-2024 SourceCodesWorld.com, All Rights Reserved.
Page URL: http://www.sourcecodesworld.com/source/show.asp?ScriptID=582


Download Yahoo Messenger | Placement Papers | Free SMS | C Interview Questions | C++ Interview Questions | Quick2Host Review