Académique Documents
Professionnel Documents
Culture Documents
Page 1
CERTIFICATE
Name: Abhinav Kushwah Roll No.: Class: XII Institution: K.V.Manauri
This is to certified to be the bonafide work of the student on the computer project on topic Indian Army using C++ during the academic year 20132014.
Date _____________
Page 2
INDEX
Sl.No. 01 02 03 04 05 06 Preface
Topic
Page No. 04 05 06 07 08 25
Page 3
PREFACE
Myself <<Abhinav Kushwah>> of standard 12th, Has prepared the project on the title^^ INDIAN ARMY^^using C++ in the guidance of my subject teacher Mrs.Shalini mam. He has taught us so optimistically that we are able to follow his precious advice. While preparing this project I have to taken help of my friends and classmates. This project has given me a chance to excel my knowledge in such a good topic which has a lot of necessity at present as well as in future. Finally, I would like to thanks Shalini mam immensely to allot me this project.
THANKING YOU!!!!!!!!
Page 4
ACKNOWLEDGEMENT
With an ineffable sense of gratitude, I Abhinav Kushwah of class XII from K.V.Manauri take this opportunity to express my deep sense of
gratitude towards my computer teacher Mrs. Shalini who guided me to prepare a project INDIAN ARMY using C++ . I am also thankful to my friends and other teachers for providing me throughout guidance on this project. Last but not least I want to thanks my parents for their support and encouragement. file on topic
Abhinav Kushwah
Page 5
PLATFORM
Page 6
SCHEDULE
Sl. No.
01 02 03 04
TOPIC
Introduction Coding and Output Editing Finishing
DATES
TIMINGS
15.10.13 5 p.m. to 7 p.m. 20.10.13 to 30.10.13 9 p.m. to 11p.m. 05.11.13 to 10.11.13 12.11.13 9 p.m. to 10 p.m. 5 p.m. to 7p.m.
Page 7
CODING
Page 8
#include<iostream.h> #include<conio.h> #include<stdio.h> #include<string.h> #include<process.h> void password(); class army { char name[20]; char father[20]; char mother[20]; char gendre[10]; char nation[20]; char martial[20]; char com[20]; int strt; char area[20]; char city[20]; char state[20];
COMPUTER SCIENCE PROJECT Page 9
int pin; char dob[20]; int age; public: void select(); void his(); void carrer(); void reg(); }; void password() { char pass[10]; char repass[18]; strcpy(pass,"army"); cout<<"ENTER PASSWORD"; gets(repass); if(strcmp(repass,pass)==0); { army a;
COMPUTER SCIENCE PROJECT Page 10
a.select(); a.reg(); } } void army::select() { int choice; clrscr(); cout<<"\t\t cout<<"\t\t @ \n"; cout<<"\t\t @@@@ \n"; cout<<"\t\t \n"; cout<<"\t\t cout<<"\t\t cout<<"\t\t @@@@ @@@@ @ @ @ @@@@@ @ @@@@ @ @ \n\n"; @@@@ @@@@ @@@@ @@@@@ @@@@ @ @ @ @ @ @ @ @ @ @\n";
Page 11
@@@@ @@@@ @ @ @ @
@ @@@@ @ @ @ @ @ @ @
@@@ @ @
@@@@ @@@@@\n";
@@@@ @@@@ @ @ @ @ @@ @ @ @ @
@ @@@ @ @ @\n";
@\n";
cout<<"\n\t * * * * * * *
cout<<"\n\t * * * * * * * * * * * * cout<<"\n\t * * * * * * * * * * * cout<<"\n\t\t\t\t___________\n"; { cout<<"\n1-About Indian Army\n"; cout<<"2-Registration in Indian Army\n"; cout<<"3-Exit\n"; cout<<"\nChoose Your Option:-"; cin>>choice; switch(choice) { case 1:his(); break; case 2:carrer();
* * * * * * * * * *"; * * * * * * * ";
Page 12
break; case 3: exit(0); break; default: cout<<"wrong"; } } } void army::his() { int r; cout<<"1:Introduction\n"; cout<<"2:History\n"; cout<<"3:Heroes Of indian Army\n"; cout<<"Choose Your Option:-"; cin>>r; if(r==1) { cout<<"\n\t\t\t\tINTRODUCTION\n";
COMPUTER SCIENCE PROJECT Page 13
cout<<"\n\t\t\t\t____________\n"; cout<<"Grit and experience affect the growth of an institution. Fighting four major wars, insurgency and other\n"; cout<<"low intensity wars has indeed made the Indian Army an eminently and efficient battle trained, war machine.\n"; cout<<"Changing times bring changing needs. Battle training must tell also on the structuring of the army, for it is\n"; cout<<"this function that extracts the most from the assets available, both men and material. A look at the command\n"; cout<<"and structuring of the Indian Army shows how finely these have been tuned to meet India's threat perceptions\n"; cout<<"based on the experience of the major wars that it has fought and the present-day geo-political context.\n"; } else if(r==2) { cout<<"\n\t\t\t\t HISTORY OF INDIAN ARMY\n"; cout<<"\n\t\t\t\t________________________\n"; cout<<"The distinguished history of Indian Army dates back more than ten thousand years.\n";
Page 14
cout<<"The two grand epics of Ramayana and Mahabharata constitute the fundamental framework\n"; cout<<"around which the edifice of Indian Army is built.The massive war Mahabharata, fought at Kurukshetra\n"; cout<<"in north-central India, has left indelible imprints on the Indian psyche. Fought relentlessly for eighteen\n"; cout<<"days in the quest of peace,the force level described in the Epic states 18 Akshaunis, seven with thePandavasand\n"; cout<<"eleven with the Kauravas, amounting to nearly 400,000 assorted troops fighting on chariots, horses, elephants\n"; cout<<"and foot soldiers.\n\n"; } else if(r==3) { int p; cout<<"\n\t\t\tHEROES OF INDIAN ARMY\n"; cout<<"\n\t\t\t_____________________\n"; cout<<"1-List Of Param Vir Chakra\n"; cout<<"2-List Of Ashok Chakra\n"; cout<<"\nSelect Your Option:-";
Page 15
cin>>p; if(p==1) { cout<<"\n\t\t\tPRAM VIR CHAKRA\n"; cout<<"\t\t\t\tNAME\t\t\t\tYEAR\n"; cout<<"\t\t\t\tSomnath Sharma\t\t\t1947\n"; cout<<"\t\t\t\tRama Raghoba\t\t\t1948\n"; cout<<"\t\t\t\tGurbachan Singh\t\t\t1961\n"; cout<<"\t\t\t\tAbdul Hamid\t\t\t1965\n"; cout<<"\t\t\t\tAlbert Ekka\t\t\t1971\n"; } else if(p==2) {cout<<"\n\t\t\tASHOK CHAKRA\n"; cout<<"\n\t\t\t_____________\n"; cout<<"\t\t\t\tNAME\t\t\t\tYEAR\n"; cout<<"\t\t\t\tSundar Singh\t\t\t1956\n"; cout<<"\t\t\t\tJoginder Singh\t\t\t1957\n"; cout<<"\t\t\t\tBahadur Rai\t\t\t1962\n"; cout<<"\t\t\t\tRam Singh\t\t\t1969\n";
COMPUTER SCIENCE PROJECT Page 16
cout<<"\t\t\t\tJames Tucker\t\t\t1972\n"; } else cout<<">>>WRONG CHOICE<<<"; } else cout<<"...Wrong Selection..."; } void army::carrer() { cout<<"\n\t\t\t\tEnter Details For Registration\n"; cout<<"\n\t\t\t\t_______________________________\n"; cout<<"\nName=\t"; gets(name); cout<<"\nGendre=\t"; gets(gendre); cout<<"\nDOB=\t"; gets(dob); cout<<"\nAge=\t";
COMPUTER SCIENCE PROJECT Page 17
cin>>age; cout<<"\nFather's Name=\t"; gets(father); cout<<"\nMother's Name=\t"; gets(mother); cout<<"\nNationality=\t"; gets(nation); cout<<"\nCommuity=\t"; gets(com); cout<<"\nStreet no.=\t"; cin>>strt; cout<<"\nArea=\t"; gets(area); cout<<"\nCity=\t"; gets(city); cout<<"\nState=\t"; gets(state); cout<<"\nPin=\t"; cin>>pin;
COMPUTER SCIENCE PROJECT Page 18
reg(); }
void army::reg() { cout<<"\n\t\t\tRegistration\n"; cout<<"\n\t\t\t____________\n"; if(age>=17) { cout<<"\nName=\t"; puts(name); if(strcmp(gendre,"M")==0) { cout<<"\nGendre=Male\t"; } else if(strcmp(gendre,"F")==0) { cout<<"\nGendre=Female\t"; }
COMPUTER SCIENCE PROJECT Page 19
else { cout<<"\nWrong entery"; } cout<<"\nDOB=\t"; puts(dob); cout<<"\nFather's Name=\t"; puts(father); cout<<"\nMother's Name=\t"; puts(mother); cout<<"\nNationality=\t"; puts(nation); cout<<"\nCommuity=\t"; puts(com); cout<<"\nStreet No.=\t"<<strt; cout<<"\nArea=\t"; puts(area); cout<<"\nCity=\t"; puts(city);
COMPUTER SCIENCE PROJECT Page 20
cout<<"\nState=\t"; puts(state); cout<<"\nPin=\t"<<pin; cout<<"\n...Registration Complete...\n"; } else cout<<"\nNot Eligible"; } void main() { clrscr(); army x; password(); x.select(); x.carrer(); x.reg(); getch(); }
Page 21
OUTPUT
Page 22
Page 23
Page 24
Page 25
Page 26
Page 27
Page 28
Page 29
Page 30
Page 31
Page 32
Page 33
Page 34