KEMBAR78
Computer Science C++ Project | PDF | Behavior Modification | Learning
0% found this document useful (0 votes)
80 views25 pages

Computer Science C++ Project

The document is a student project on the Indian Army created using C++. It contains sections on the history of the Indian Army, heroes of the army, and a registration process. The coding section includes classes to store applicant information and functions for registration, displaying army information, and getting user input. The output section displays sample registration outputs.

Uploaded by

Amit Pathak
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
80 views25 pages

Computer Science C++ Project

The document is a student project on the Indian Army created using C++. It contains sections on the history of the Indian Army, heroes of the army, and a registration process. The coding section includes classes to store applicant information and functions for registration, displaying army information, and getting user input. The output section displays sample registration outputs.

Uploaded by

Amit Pathak
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 25

SUBMITTED TO SUBMITTED BY

MR. DHRUV SHARMA MOHIT PATHAK

PGT(CS) BOARD ROLL NO-


DEPT. OF CS

COMPUTER SCIENCE PROJECT Page 1


CERTIFICATE

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 2017-
2018.

Internal Examiner External Examiner

Date

COMPUTER SCIENCE PROJECT Page 2


INDEX

S.No. Topic Page No.

01 Certificate 02

02 Preface 04

03 Acknowledgement 05

04 Coding 06

05 Output 19

06 Biblography 25

COMPUTER SCIENCE PROJECT Page 3


PREFACE
Myself <<Mohit Pathak>> of standard 12th ,

Has prepared the project on the title^^ INDIAN


ARMY^^using C++ in the guidance of my subject
teacher Mr.DHRUV SHARMA. 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 Dhruv sir immensely to allot


me this project.

THANKING YOU!!!!!!!!

COMPUTER SCIENCE PROJECT Page 4


ACKNOWLEDGEMENT
With an ineffable sense of gratitude, I ― MOHIT
PATHAK ―of class-XII A1 from “Victoria public school”

take this opportunity to express my deep sense of

gratitude towards my computer teacher ― Mr. Dhruv

Sharma who guided me to prepare a project file on

topic ―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.

-MOHIT PATHAK

COMPUTER SCIENCE PROJECT Page 5


Pa
CODING ge
6
#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 7


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 7


a.select();

a.reg();

void army::select()

{
int choice;

clrscr();

cout<<"\t\t @@@@ @@@@ @ @ @@@@ @ @


@@@@@ @@@@ @@@@ \n";

cout<<"\t\t @ @@@@@@@@ @ @ @ @ @
@ \n";

cout<<"\t\t @ @ @ @ @ @ @@@@ @ @ @ @@@


@@@@ \n";

cout<<"\t\t @ @ @ @ @ @ @ @ @ @ @ @
\n";

cout<<"\t\t @@@@ @@@@ @ @ @ @@@@@ @


@@@@ @ @ \n\n";

cout<<"\t\t @@@@ @@@@ @@@@ @@@@@ @@@@


@@@@ @@@@@\n";

cout<<"\t\t @ @ @ @ @ @ @ @ @ @\n";

COMPUTER SCIENCE PROJECT Page 8


cout<<"\t\t @@@@ @@@@ @ @ @ @@@ @ @\n";
cout<<"\t\t @ @@ @ @ @ @ @ @\n";
cout<<"\t\t @ @ @ @@@@ @@@ @@@@ @@@@ @
\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();

COMPUTER SCIENCE PROJECT Page 9


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 10


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";

COMPUTER SCIENCE PROJECT Page 11


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 the„Pandavas‟and\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:-";

COMPUTER SCIENCE PROJECT Page 12


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 13


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 14


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 15


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 16


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 17


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();

COMPUTER SCIENCE PROJECT Page 18


OUTPU
T

COMPUTER SCIENCE PROJECT Page 19


COMPUTER SCIENCE PROJECT Page 20
COMPUTER SCIENCE PROJECT Page 21
COMPUTER SCIENCE PROJECT Page 22
COMPUTER SCIENCE PROJECT Page 23
COMPUTER SCIENCE PROJECT Page 24
BIBLOGRAPHY

1-http://www.google.com/

2-http:/en.Wikipedia.org

3-Computer Science with C++ by Sumita


Arora.

4-Object Oriented Programming by Robert


Lafore.

COMPUTER SCIENCE Page 24


PROJECT

You might also like