0% found this document useful (0 votes)
81 views23 pages

Term Paper Object Oriented Programming CSE202 Topic-Mobile Service Provider Database

This document is a term paper on an object oriented programming project about a mobile service provider database. It includes sections on acknowledgements, an abstract, introduction, full description and coding, results and discussion, and references. The full description and coding section includes C++ code to search a mobile number and determine the service provider based on the first four digits. It also includes code for entering new customer data and searching customer details.

Uploaded by

Ajay Kumar
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
81 views23 pages

Term Paper Object Oriented Programming CSE202 Topic-Mobile Service Provider Database

This document is a term paper on an object oriented programming project about a mobile service provider database. It includes sections on acknowledgements, an abstract, introduction, full description and coding, results and discussion, and references. The full description and coding section includes C++ code to search a mobile number and determine the service provider based on the first four digits. It also includes code for entering new customer data and searching customer details.

Uploaded by

Ajay Kumar
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 23

TERM PAPER OBJECT ORIENTED PROGRAMMING CSE202 TOPIC-MOBILE SERVICE PROVIDER DATABASE

Submmited bYSubmmmited toAJAY Roll-A38 dept. of computer study Regd.-11009446 KUMAR vashudha Ranchal

CONTENTS
PAGE NO.

1.ACKNOWLEDGEMENT 2.ABSTRACT 3.INTRODUCTION 4.FULL DESCRIPTION & CODING 5.RESULTS & DISCUSSION 6.REFRENCES

ACKNOWLEDGEMENT

I am very glad to acknowledge about the topic MOBILE SERVICE PROVIDER DATABASE is very interesting topic, and I had done under the instruction of my sincere teacher Mrs.vashudha Ranchal. It will very useful for searching mobile numbers and finding which company provides which type services I sincere thanks to my teacher Mrs.vashudha ranchal and my some friends which gives material and suggest to me about my topic.

ABSTRACT

Programming of MOBILE SERVICES PROVIDER DATABASE is based on the language of C++ and it only comportable with TURBO compiler. First of all I had done in the mobile tracing sector apply if else ladder programming.it is very easy to search any numbers.In this sector two others sectors based on searching 4 digit numbers and in other it takes 10 digits but finding only based on 4 digit numbers . In data entry sector I had done simple C++ coding and using for loop,goto keyword,if statement and else statement. The details searching sector based on previous data entry sector, it will works only previous sector.it is based on only if else ladder coding.if data entry in previous sector is done then it will only generate output else is will generate the message The number you are enter is not found in our database or it may be wrong. The services searching sector based on open door. Which company provides which types of services in which staes. Its coding is based on if else ladder and other simple C++ coding.

INTRODUCTION
Today it is very useful to searching about any any mobile number and which companies provides which types of services.so , the knowledge about MOBILE SERVICES PROVIDER DATABASE is very essential. The topic gives to to many services as following1.Trace any mobile number (a).Enter first 4 digit of mobile number (b).Enter ten digit mobile number. 2.New customer data entery 3.Customer details searching 4.Searching Companies provides services in all states You can follow these instruction and enjoy the properties of MOBILE SERVIES PROVIDER DATABASE.

FULL DESCRIPTION & CODING


#include<iostream.h> #include<conio.h> #include<dos.h> #include<math.h> #include<graphics.h> #include<stdio.h> #include<iomanip.h> class mpsd { private: int number,age,id,iage,i,re,com; int smn; long mnumber; char name[30],fname[30],ad[80],iname[3 0],ifname[30],iad[80],sn[15]; public: void getdata() ; void putdata() ; void ser1(); void getad(); }; void mpsd ::getdata() { cout<<"Enter first four digit mobile number:\n"; cin>>number; if(number==9006 || number==9661 || number==9631 || number==9931 || number==9934 || number==9939 || number==9955 || number==9973 || number==9771 || number==9546 || number==9572 || number==9199 || number==8002 || number==8084 || number==8809 || number==8998 || number==7739 || number==7250) cout<<"This is bihar AIRTEL prepaid number.\n"<<"\nHappy to help."<<"\nThank you.";

else if(number==9165 || number==9179 || number==9630 || number==9834 || number==9752 || number==9755 || number==9685 || number==9893 || number==9993 || number==9981 || number==8827 || number==8085 || number==7389 || number==7869 || number==7898) cout<<"This is madhya pradesh AIRTEL number."<<"\nHappy to help."<<"\nThank you."; else if(number==9634 || number==9760 || number==9897 || number==9997 || number==8979 || number==7895) cout<<"This is utter pradesh west AIRTEL prepaid number. "<<"\nHappy to help."<<"\nThank you."; else if(number==9005 || number==9559 || number==9651 || number==9198 || number==9695 || number==9793 || number==9794 || number==9956 || number==9935 || number==9936 || number==8953 || number==7607 || number==7897 || number==7388 || number==8127 || number==8009) cout<<"This is utter pradesh east AIRTEL prepaid number."<<"\nHappy to help."<<"\nThank you."; else if(number==9430 || number==9431 || number==9470 || number==9471 || number==9472) cout<<"This is bihar CELLONE GSM prepaid number."<<"\nHappy to help."<<"\nThank you."; else if(number==9182) cout<<"This is bihar CELLONE CDMA prepaid number."<<"\nHappy to help."<<"\nThank you."; else if(number==9534 || number==9570 || number==8877 || number==7631 || number==7549 || number==7550 || number==8298 || number==8051 || number==9709)

cout<<"This is bihar VODAFONE prepaid number."<<"\nHappy to help."<<"\nThank you."; else if(number==9504 || number==9097 || number==9852 || number==8804 || number==8083) cout<<"This is BIHAR AIRCEL prepaid number."<<"\nHappy to help."<<"\nThank you."; else if(number==9122 || number==9643 || number==8271 || number==7870) cout<<"This is BIHAR UNINOR prepaid number."<<"\nHappy to help."<<"\nThank you."; else if(number==9128 || number==7808 || number==8797) cout<<"This is BIHAR STEL prepaid number."<<"\nHappy to help."<<"\nThank you."; else if(number==9031 || number==7209 || number==8603) cout<<"This is BIHAR TATA DOCOMO prepaid number."<<"\nHappy to help."<<"\nThank you."; else if(number==9507 || number==9525 || number==9576 || number==7654 || number==7655 || number==8873) cout<<"This is BIHAR IDEA prepaid number."<<"\nHappy to help."<<"\nThank you."; else if(number==9304 || number==9308 || number==9334 || number==9386 || number==7488) cout<<"This is BIHAR RELIANCE CDMA prepaid number."<<"\nHappy to help."<<"\nThank you."; else if(number==9608 || number==9905 || number==9693 || number==7677 || number==9798 || number==9835) cout<<"This is BIHAR RELIANCE GSM prepaid number."<<"\nHappy to help."<<"\nThank you."; else if(number==9204 || number==9234 || number==9279)

cout<<"This is BIHAR TATA INDICOM prepaid number."<<"\nHappy to help."<<"\nThank you."; else if(number==9102) cout<<"This is BIHAR LOOP MOBILE prepaid number."<<"\nHappy to help."<<"\nThank you."; else if(number==9501 || number==9815 || number==9915 || number==9872 || number==9876 || number==9878 || number==9779 || number==8427 || number==8146 || number==8968) cout<<"This is Punjab AIRTEL prepaid number."<<"\nHappy to help."<<"\nThank you."; else if(number==9417 || number==9463 || number==9464 || number==9465 || number==9478) cout<<"This is Punjab BSNL prepaid number."<<"\nHappy to help."<<"\nThank you."; else if(number==9517) cout<<"This is PUNJAB ETISALAT prepaid number."<<"\nHappy to help."<<"\nThank you."; else if(number==9216 || number==9217 || number==9256 || number==9257) cout<<"This is PUNJAB TATA INDICOM prepaid number."<<"\nHappy to help."<<"\nThank you."; else if(number==9316 || number==9317 || number==9356 || number==9357) cout<<"This is PUNJAB RELIANCE CDMA prepaid number."<<"\nHappy to help."<<"\nThank you."; else if(number==7814) cout<<"This is PUNJAB RELIANCE GSM prepaid number."<<"\nHappy to help."<<"\nThank you."; else if(number==9115) cout<<"This is PUNJAB LOOP MOBILE prepaid

number."<<"\nHappy to help."<<"\nThank you."; else if(number==9803) cout<<"This is PUNJAB DATACOM prepaid number."<<"\nHappy to help."<<"\nThank you."; else if(number==9814 || number==9914 || number==9855 || number==9781 || number==9091 || number==9592 || number==8437 || number==8872) cout<<"This is PUNJAB IDEA prepaid number."<<"\nHappy to help."<<"\nThank you."; else if(number==9530 || number==8992 || number==7589) cout<<"This is PUNJAB CELLONE GSM prepaid number."<<"\nHappy to help."<<"\nThank you."; else if(number==9023 || number==9569) cout<<"This is PUNJAB RELIANCE GSM prepaid number."<<"\nHappy to help."<<"\nThank you."; else if(number==9646 || number==9888 || number==9988 || number==9780 || number==8054 || number==7508 || number==7837) cout<<"This is PUNJAB VODAFONE prepaid number."<<"\nHappy to help."<<"\nThank you."; else if(number==9653 || number==9877) cout<<"This is PUNJAB PING CDMA prepaid number."<<"\nHappy to help."<<"\nThank you."; else if(number==9149) cout<<"This is PUNJAB MTS prepaid number."<<"\nHappy to help."<<"\nThank you."; else if(number==9056) cout<<"This is PUNJAB UNINOR prepaid number."<<"\nHappy to help."<<"\nThank you."; else

cout<<"\n number you have entered is not added in our database or it may be WRONG."; }

void mpsd ::putdata() { cout<<"\n********************* ***************************** ****************"; cout<<"\n\tyou are in perpaid user data Entry section"; cout<<"\n********************* ***************************** ****************"; cout<<"\nEnter 10 digit mobile number:";cin>>mnumber; cout<<"\nEnter name of prepaid user:";gets(name); ag: cout<<"\nEnter age:";cin>>age; if(age<18) { cout<<"\nThis customer is not autherized"; goto ag; } else { cout<<"\nFather's name:";gets(fname); cout<<"\nEnter address:";gets(ad); idg: cout<<"\nEnter ID prof: Press 1.driving licence 2.voter card 3.student id card\n";cin>>id; if(id>3) { cout<<"\nID proof entry wrong "; goto idg; } cout<<"\nEnter Id details"; nam:{ cout<<"\nEnter user name in id proof:";gets(iname); } fnam:{ cout<<"\nEnter father's name:"; gets(ifname); }

ag1: cout<<"\nEnter age:";cin>>iage; if(age!=iage) { cout<<"\nEntered age is different in id and application form"; goto ag1; } cout<<"\nEnter id serial number:";gets(sn); for(i=0;i<=3;i++) { if(name[i]!=iname[i]) { cout<<"\nEntered name is different in id and application form"; goto nam; } if(fname[i]!=ifname[i]){ cout<<"\nEntered father name is different in id and application form"; goto fnam; }} cout<<"\n**********Please check the data**************"; cout<<"\nMobile number:"<<mnumber; cout<<"\nName:"<<name; cout<<"\nFather's name:"<<fname; cout<<"\nAge:"<<age; cout<<"\nid proof:"; if(id==1) { cout<<"Driving licence"; } else if(id==2) { cout<<"Voter card"; } else if(id==3) {cout<<"Student id card"; } cout<<"\nId card serial number:"<<sn; } } void mpsd :: getad() { cout<<"\n********************* ***************************** ****************"; cout<<"\n\tyou are in details searching section";

cout<<"\n********************* ***************************** ****************"; cout<<"\nEnter 10 digit mobile number:";cin>>smn; if(smn!=mnumber) { cout<<"\nEither mobile number entered is not in database or it may be wrong"; } else { cout<<"\nName:"<<name; cout<<"\nFather's name:"<<fname; cout<<"\nAge:"<<age; cout<<"\nid proof:"; if(id==1) { cout<<"Driving licence"; } else if(id==2) { cout<<"Voter card"; } else if(id==3) {cout<<"Student id card"; } } } class data:public mpsd { public: int re,se,u; void ser() ; }; void data::ser() { cout<<"\n********************* ***************************** *****************"; cout<<"\nyou are in service providing searching"; cout<<"\n********************* ***************************** *****************"; cout<<"\nEnter state or region serial number:"; cout<<"\n\n\n1.Andhra pradesh 2.Assam 3.Bihar & Jharkhand 4.Chennai 5.Delhi";

cout<<"\n\n\n 6.Gujrat 7.Himachal pradesh 8.Haryana 9.Jammu & kasmir 10.Kerala"; cout<<"\n\n\n11.Karnatka 12.Kolkata metro 13.Maharastra 14.Madhya pradesh 15.Mumbai"; cout<<"\n\n\n16.North East india 17.Orissa 18.Punjab 19.Rajsthan 20.Tamilnadu"; cout<<"\n\n\n21.Uttar pradesh East 22.Uttar pradesh West 23.West bengal\n"; cout<<"/n********choose your region or state*********\n"; cin>>se; if(se>23) { cout<<"\nWrong selection"; } clrscr(); cout<<"\n1.Aircel 2.Airtel 3.Cellone CDMA 4.CELLONE GSM 5.DATACOM 6.DOLPHIN 7.ETISALAT"; cout<<"\n\n\n8.IDEA 9.LOOPMOBILE 10.MTS 11.PING MOBILE 12.RELIANCE CDMA 13.RELIANCE GSM"; cout<<"\n\n\n14.SPICE 15.STEL 16.T24 17.TATADOCOMO 18.TATAINDICOM 19.UNINOR 20.VIRGIN MOBILE CDMA"; cout<<"\n\n\n21.VIRGIN MOBILE GSM 22.VODAFONE/n/n"; cout<<"\n**********choose your providing company**************"; cout<<"\n********************* ***************************** ***\n"; cin>>re; if(re>22) { cout<<"\nWrong selection"; } clrscr(); if(re==1) { cout<<"\nWelcome in aircel"; cout<<"\nCall rate 1p/sec without any tariff"; } else if(re==2)

{ cout<<"\nWelcome in airtel"; cout<<"\nCall rate 1p/sec without any tariff"; } else if(re==3) { cout<<"\nWelcome in cellone cdma"; cout<<"\nCall rate 1p/sec without any tariff";} else if(re==4) { cout<<"\nWelcome in cellone gsm"; cout<<"\nCall rate 1p/sec without any tariff"; } else if(re==5) { cout<<"\nWelcome in datacom"; cout<<"\nCall rate 1p/sec without any tariff"; } else if(re==6) { cout<<"\nWelcome in DOLPHIN"; cout<<"\nCall rate 1p/sec without any tariff"; } else if(re==7) { cout<<"\nWelcome in ETISALAT"; cout<<"\nCall rate 1p/sec without any tariff"; } else if(re==8) { cout<<"\nWelcome in IDEA"; cout<<"\nCall rate 1p/sec without any tariff"; } else if(re==9) { cout<<"\nWelcome in LOOPMOBILE"; cout<<"\nCall rate 1p/sec without any tariff"; } else if(re==10) { cout<<"\nWelcome in MTS";cout<<"\nCall rate 1p/sec without any tariff";

} else if(re==11) { cout<<"\nWelcome in PING MOBILE"; cout<<"\nCall rate 1p/sec without any tariff"; } else if(re==12) { cout<<"\nWelcome in RELIANCE CDMA"; cout<<"\nCall rate 1p/sec without any tariff"; } else if(re==13) { cout<<"\nWelcome in RELIANCE GSM"; cout<<"\nCall rate 1p/sec without any tariff"; } else if(re==14) { cout<<"\nWelcome in SPICE"; cout<<"\nCall rate 1p/sec without any tariff"; } else if(re==15) { cout<<"\nWelcome in STEL"; cout<<"\nCall rate 1p/sec without any tariff"; } else if(re==16) { cout<<"\nWelcome in T24"; cout<<"\nCall rate 1p/sec without any tariff"; } else if(re==17) { cout<<"\nWelcome in TATA DOCOMO"; cout<<"\nCall rate 1p/sec without any tariff"; } else if(re==18) { cout<<"\nWelcome in TATA INDICOM"; cout<<"\nCall rate 1p/sec without any tariff";

} else if(re==19) { cout<<"\nWelcome in UNINOR"; cout<<"\nCall rate 1p/sec without any tariff"; } else if(re==20) { cout<<"\nWelcome in VIRGIN MOBILE CDMA"; cout<<"\nCall rate 1p/sec without any tariff"; } else if(re==21) { cout<<"\nWelcome in VIRGIN MOBILE GSM"; cout<<"\nCall rate 1p/sec without any tariff"; } else if(re==22) { cout<<"\nWelcome in VODAFONE"; cout<<"\nCall rate 1p/sec without any tariff"; } else if(re==22) { cout<<"\nWelcome in UNINOR"; cout<<"\nCall rate 1p/sec without any tariff"; } }; void main() { mpsd s1; data s2; int id; char un; clrscr(); login: textattr(78); textcolor(GREEN); cout<<"\n\n\t\t\tThis section is case sensative"; cout<<"\n\n\tEnter your verification code for run this programme"; cout<<"\n\n\n\n\n\n\t\t\tEnter verification code:";

cin>>id; clrscr(); switch(id){ case 11006964: { cout<<"This program is created by \n"; cout<<"\n\n1"; delay(500); cout<<"\t1"; delay(500); cout<<"\t0"; delay(500); cout<<"\t0"; delay(500); cout<<"\t6"; delay(500); cout<<"\t9"; delay(500); cout<<"\t6"; delay(500); cout<<"\t4"; delay(500); cout<<"\n\n\n"; cout<<"\tS"; delay(500); cout<<"\tA"; delay(500); cout<<"\tN"; delay(500); cout<<"\tJ"; delay(500); cout<<"\tA"; delay(500); cout<<"\tY"; delay(500); cout<<"\n\n\n\nK"; delay(500); cout<<"\tU"; delay(500); cout<<"\tM"; delay(500); cout<<"\tA"; delay(500); cout<<"\tR"; delay(500); cout<<"\n\n\n\t\nC"; delay(500); cout<<"\tH"; delay(500); cout<<"\tA"; delay(500); cout<<"\tK";

delay(500); cout<<"\tR"; delay(500); cout<<"\tA"; delay(500); cout<<"\tV"; delay(500); cout<<"\tA"; delay(500); cout<<"\tR"; delay(500); cout<<"\tT"; delay(500); cout<<"\tI"; //delay(500); cout<<"\n\nPlease wait..."; sleep(5); clrscr(); int q; int number; home: textattr(99); gotoxy(20,11); textcolor(GREEN); cprintf("MOBILE SERVICE PROVIDER DATABASE "); gotoxy(25,11); cprintf("\nPress desire key.\n"); cout<<"\t\t\t\t\t\t\t\t1.Trace mobile number\n"; cout<<"\n\t\t2.New customer data entery\n"; cout<<"\n\t\t3.Customer details searching\n"; cout<<"\n\t4.Searching Companies provides services in all states\n\n"; int choice; cin>>choice; clrscr(); switch(choice) { case 1: { gotoxy(20,12); cout<<"1.Enter first 4 digit of mobile number.\n\n"; cout<<"\t\t\t2.Enter mobile number.\n\n"; int option; cin>>option; clrscr(); switch(option) {

case 1:s1.getdata(); cout<<"\nDo you want to more search\n"<<"\n\nPress 1 for goto main menu\n"; cin>>q; if(q==1) { goto home; } break; case 2: { cout<<"Enter ten digit mobile number."; cin>>number; break; } default :break; } } break; case 2: { s1.putdata(); goto home; } break;

case 3:{ s1.getad(); goto home; break; } case 4: { s2.ser(); goto home; break; } default :cout<<"\nIlligal selection\n"<<"\n\nPress 1 for goto main menu\n"; cin>>q; if(q==1) { goto home; } cout<<"sorry! Wrong entry"; break; } } default: goto login;break; } getch();}

OUTPUT
> Notepad output: This section is case sensative Enter your verfification code for run this programme

Enter verification code:11006964

MOBILE SERVICE PROVIDER DATABASE Press desire key. 1.Trace mobile number 2.New customer data entery 3.Customer details searching 4.Searching Companies provides services in all states

1.Enter first 4 digit of mobile number. 2.Enter ten digit mobile number. 1 Enter first four digit mobile number:7837 Enter first four digit mobile number: 7837 This is PUNJAB VODAFONE prepaid number. Happy to help. Thank you. 2 Enter 10 digit mobile number:752816215 Enter age:18 Father's name:anil prasad Enter address:bihar,patna Enter ID prof: Press 1.driving licence 2.voter card 3.student id card 3 Enter Id details Enter user name in id proof:sanjay kumar chakravarti Enter father's name:anil prasad Enter age:18 Enter id serial number:as215 **********Please check the data************** Mobile number:-752816215 Name:sanjay kumar chakravarti Father's name:anil prasad Age:18 id proof:Student id card Id card serial number:as215 3 ****************************************************************** you are in details searching section ****************************************************************** Enter 10 digit mobile number:752816215 Either mobile number entered is not in database or it may be wrong 4

****************************************************************** * you are in service providing searching ****************************************************************** * Enter state or region serial number: 1.Andhra pradesh 2.Assam 3.Bihar & Jharkhand 4.Chennai 5.Delhi 6.Gujrat 7.Himachal pradesh 8.Haryana 9.Jammu & kasmir 10.Kerala 11.Karnatka 12.Kolkata metro 13.Maharastra 14.Madhya pradesh 15.Mumbai 16.North East india 17.Orissa 18.Punjab 19.Rajsthan 20.Tamilnadu 21.Uttar pradesh East 22.Uttar pradesh West 23.West bengal /n********choose your region or state********* 3 1.Aircel 2.Airtel 3.Cellone CDMA 4.CELLONE GSM 5.DATACOM 6.DOLPHIN 7.ETISALAT 8.IDEA 9.LOOPMOBILE 10.MTS 11.PING MOBILE 12.RELIANCE CDMA 13.RELIANCE GSM 14.SPICE 15.STEL 16.T24 17.TATADOCOMO 18.TATAINDICOM 19.UNINOR 20.VIRGIN MOBILE CDMA 21.VIRGIN MOBILE GSM 22.VODAFONE/n/n **********choose your providing company************** ***************************************************** 22 Welcome in VODAFONE Call rate 1p/sec without any tariff

> Snapsot output

REFRENCES

You might also like