SlideShare a Scribd company logo
INDEX
■Certificate 2
■Acknowledgement 3
■Flow Chart 4
■Source Code 6
■Screenshots 18
1
2
ACKNOWLEDGEMENT
I express my sincere gratitude to Principal
Ms.Anila Jayachandran and Vice Principal
Ms.Vijayalakshmi for giving me this great
opportunity, and providing all the facilities
required for this project
I am extremely grateful to Ms.Suma U , for
her valuable guidance, constant support
and useful suggestions.
I express my heartfelt thanks to my parents
for their blessings. I also thank my group
members who contributed immensely to
the projects and friends for their
constructive criticism which evolved this
project.
I would also like to thank the CBSE for this
opportunity to explore beyond the regular
syllabus thereby providing great exposure to
the world of programming.
3
FLOW CHART
4
5
SOURCE CODE
6
include<fstream.h>
#include<stdio.h>
#include<conio.h> //HEADER FILES USED
#include<stdlib.h>
#include<dos.h>
#include<string.h>
void intro();
void mainscreen(); //SKELETAL FUNTIONS
void frame();
void outro();
void error();
void display();
class Element
{
private:
int atmno;
char name[25],symbol[3],gp[10],pd[10]; //Class for Element
float wt;
public:
void add();
void search();
void print();
char* callnm();
int callatm();
char* callsym();
};
7
void main()
{
Element E;
char cho;
clrscr(); //MAIN BODY
intro();
clrscr();
mainscreen();
label1:
fstream file("elements.dat",ios::in|ios::out|ios::binary);
file.seekg(0);
textcolor(10);gotoxy(22,14);
cprintf(" ------------------------------- "); gotoxy(22,15);
cprintf("| 1.Display The Periodic Table |"); gotoxy(22,16);
cprintf("| |"); gotoxy(22,17);
cprintf("| 2.Search For An Element |"); gotoxy(22,18);
cprintf("| |"); gotoxy(22,19);
cprintf("| 3.Add an Element |"); gotoxy(22,20);
cprintf("| |"); gotoxy(22,21);
cprintf("| 4.Exit |"); gotoxy(22,22);
cprintf(" ------------------------------- "); gotoxy(22,24);textcolor(15);
cprintf("Enter Your Choice....");
cho=getch();
switch(cho)
{
case '1': display();
break;
case '2': E.search();
break;
case '3': E.add();
break;
case '4': {
clrscr();
outro();
getch();
exit(1);
break;
}
8
default: {
clrscr();
mainscreen();
textcolor(15); gotoxy(60,13);
cprintf("*****************"); gotoxy(60,14);
textcolor(15);
cprintf("*");
textcolor(12+128);
cprintf(" Wrong choice! ");
textcolor(15);
cprintf("*"); gotoxy(60,15);
textcolor(15);
cprintf("*");
textcolor(14);
cprintf(" Retype choice ");
textcolor(15);
cprintf("*"); gotoxy(60,16);textcolor(15);
cprintf("*****************");
goto label1;
}
}
clrscr();
mainscreen();
file.close();
goto label1;
}
void intro()
{
clrscr();
randomize(); //INTRO ANIMATION
for(int j=20;j>1;j--)
{
textcolor(random(15)+1);
delay(1);
gotoxy(17,j);
cputs("#### #### #### ##### ##### #### ##### ##### "); gotoxy(17,j+1);
cputs("# # # # # # # # # # # # "); gotoxy(17,j+2);
cputs("#### ### #### # # # # # # # "); gotoxy(17,j+3);
cputs("# # # # # # # # # # # "); gotoxy(17,j+4);
cputs("# #### # # ##### ##### #### ##### ##### "); gotoxy(25,j+7);
cputs("##### ### #### # ##### "); gotoxy(25,j+8);
cputs(" # # # # # # # "); gotoxy(25,j+9);
cputs(" # ##### #### # ### "); gotoxy(25,j+10);
cputs(" # # # # # # # "); gotoxy(25,j+11);
cputs(" # # # #### ##### ##### "); gotoxy(100,100);
delay(100);
clrscr();
}
9
textcolor(15);
gotoxy(17,2);
cputs("#### #### #### ##### ##### #### ##### ##### "); gotoxy(17,3);
cputs("# # # # # # # # # # # # "); gotoxy(17,4);
cputs("#### ### #### # # # # # # # "); gotoxy(17,5);
cputs("# # # # # # # # # # # "); gotoxy(17,6);
cputs("# #### # # ##### ##### #### ##### ##### "); gotoxy(25,8);
cputs("##### ### #### # ##### "); gotoxy(25,9);
cputs(" # # # # # # # "); gotoxy(25,10);
cputs(" # ##### #### # ### "); gotoxy(25,11);
cputs(" # # # # # # # "); gotoxy(25,12);
cputs(" # # # #### ##### ##### ");
gotoxy(26,25);
cputs("Press Any Key To Continue...");
getch();
}
void mainscreen() //MAINSCREEN GRAPHIC
{
textcolor(15);
gotoxy(17,2);
cputs("#### #### #### ##### ##### #### ##### ##### "); gotoxy(17,3);
cputs("# # # # # # # # # # # # "); gotoxy(17,4);
cputs("#### ### #### # # # # # # # "); gotoxy(17,5);
cputs("# # # # # # # # # # # "); gotoxy(17,6);
cputs("# #### # # ##### ##### #### ##### ##### "); gotoxy(25,8);
cputs("##### ### #### # ##### "); gotoxy(25,9);
cputs(" # # # # # # # "); gotoxy(25,10);
cputs(" # ##### #### # ### "); gotoxy(25,11);
cputs(" # # # # # # # "); gotoxy(25,12);
cputs(" # # # #### ##### ##### "); gotoxy(100,100);
}
void outro()
{ //EXIT ANIMATION
clrscr();
randomize();
for(int j=20;j>1;j--)
{
textcolor(random(15)+1);
delay(1);
gotoxy(26,j);
cputs("##### # # ### ## # # # "); gotoxy(26,j+1);
cputs(" # # # # # # # # # # "); gotoxy(26,j+2);
cputs(" # ##### ##### # # # ## "); gotoxy(26,j+3);
cputs(" # # # # # # # # # # "); gotoxy(26,j+4);
cputs(" # # # # # # ## # #"); gotoxy(26,j+6);
cputs(" # # ### # # "); gotoxy(26,j+7);
cputs(" # # # # # # "); gotoxy(26,j+8);
cputs(" # # # # # "); gotoxy(26,j+9);
cputs(" # # # # # "); gotoxy(26,j+10);
cputs(" # ### ### "); gotoxy(0,0);
delay(100);
clrscr();
}
10
for(j=20;j>1;j--)
{
textcolor(15);
delay(10);
gotoxy(29,j);
cputs(" --------------------- "); gotoxy(29,j+1);
cputs("| Done BY:- |"); gotoxy(29,j+2);
cputs("| |"); gotoxy(29,j+3);
cputs("| Abhinand Krishna |"); gotoxy(29,j+4);
cputs("| Abhay Menon |"); gotoxy(29,j+5);
cputs("| Abhinav Asokan |"); gotoxy(29,j+6);
cputs("| A. Neelkamal |"); gotoxy(29,j+7);
cputs(" ----------------------");
delay(300);
clrscr();
}
exit(0);
}
void display()
{ clrscr(); //PERIODIC TABLE
frame();
gotoxy(31,2);cputs("PERIODIC TABLE");
gotoxy(31,3);cputs("^^^^^^^^^^^^^^");
textcolor(15+128);
gotoxy(6,4); cputs("H");
textcolor(4);
gotoxy(6,6); cputs("Li");
gotoxy(6,8); cputs("Na");
gotoxy(6,10);cputs("K");
gotoxy(6,12); cputs("Rb");
gotoxy(6,14); cputs("Cs");
gotoxy(6,16); cputs("Fr");
textcolor(6);
gotoxy(10,6); cputs("Be");
gotoxy(10,8); cputs("Mg");
gotoxy(10,10); cputs("Ca");
gotoxy(10,12); cputs("Sr");
gotoxy(10,14); cputs("Ba");
gotoxy(10,16); cputs("Ra");
textcolor(14);
gotoxy(14,10); cputs("Sc");
gotoxy(14,12); cputs("Y");
textcolor(12);
gotoxy(14,14); cputs("La");
textcolor(10);
gotoxy(14,16); cputs("Ac");
textcolor(14);
gotoxy(18,10); cputs("Ti");
gotoxy(18,12); cputs("Zr");
gotoxy(18,14); cputs("Hf");
gotoxy(18,16); cputs("Rf");
gotoxy(22,10); cputs("V");
gotoxy(22,12); cputs("Nb");
gotoxy(22,14); cputs("Ta");
gotoxy(22,16); cputs("Db");
gotoxy(26,10); cputs("Cr");
gotoxy(26,12); cputs("Mo");
11
gotoxy(26,14); cputs("W");
gotoxy(26,16); cputs("Un");
gotoxy(30,10); cputs("Mn");
gotoxy(30,12); cputs("Tc");
gotoxy(30,14); cputs("Re");
gotoxy(30,16); cputs("Ns");
gotoxy(34,10); cputs("Fe");
gotoxy(34,12); cputs("Ru");
gotoxy(34,14); cputs("Os");
gotoxy(34,16); cputs("Hs");
gotoxy(38,10); cputs("Co");
gotoxy(38,12); cputs("Rh");
gotoxy(38,14); cputs("Ir");
gotoxy(38,16); cputs("Mt");
gotoxy(42,10); cputs("Ni");
gotoxy(42,12); cputs("Pd");
gotoxy(42,14); cputs("Pt");
gotoxy(42,16); cputs("Ds");
gotoxy(46,10); cputs("Cu");
gotoxy(46,12); cputs("Ag");
gotoxy(46,14); cputs("Au");
gotoxy(46,16); cputs("Rg");
gotoxy(50,10); cputs("Zn");
gotoxy(50,12); cputs("Cd");
gotoxy(50,14); cputs("Hg");
gotoxy(50,16); cputs("Cn");
textcolor(3);
gotoxy(54,6); cputs("B");
textcolor(2);
gotoxy(54,8); cputs("Al");
gotoxy(54,10); cputs("Ga");
gotoxy(54,12); cputs("In");
gotoxy(54,14); cputs("Tl");
gotoxy(54,16); cputs("Uut");
textcolor(10);
gotoxy(58,6); cputs("C");
textcolor(3);
gotoxy(58,8); cputs("Si");
gotoxy(58,10); cputs("Ge");
textcolor(2);
gotoxy(58,12); cputs("Sn");
gotoxy(58,14); cputs("Pb");
gotoxy(58,16); cputs("Fl");
textcolor(10);
gotoxy(62,6); cputs("N");
gotoxy(62,8); cputs("P");
textcolor(3);
gotoxy(62,10); cputs("As");
gotoxy(62,12); cputs("Sb");
textcolor(2);
gotoxy(62,14); cputs("Bi");
gotoxy(62,16); cputs("Uup");
textcolor(10);
gotoxy(66,6); cputs("O");
gotoxy(66,8); cputs("S");
gotoxy(66,10); cputs("Se");
textcolor(3);
gotoxy(66,12); cputs("Te");
gotoxy(66,14); cputs("Po");
textcolor(2);
gotoxy(66,16); cputs("Lv"); 12
textcolor(5);
gotoxy(70,6); cputs("F");
gotoxy(70,8); cputs("Cl");
gotoxy(70,10); cputs("Br");
gotoxy(70,12); cputs("I");
gotoxy(70,14); cputs("At");
gotoxy(70,16); cputs("Uus");
textcolor(9);
gotoxy(74,4); cputs("He");
gotoxy(74,6); cputs("Ne");
gotoxy(74,8); cputs("Ar");
gotoxy(74,10); cputs("Kr");
gotoxy(74,12); cputs("Xe");
gotoxy(74,14); cputs("Rn");
gotoxy(74,16); cputs("Uuo");
textcolor(12);
gotoxy(12,19); cputs("Lanthanides");
gotoxy(25,19); cputs("Ce");
gotoxy(28,19); cputs("Pr");
gotoxy(31,19); cputs("Nd");
gotoxy(34,19); cputs("Pm");
gotoxy(37,19); cputs("Sm");
gotoxy(40,19); cputs("Eu");
gotoxy(43,19); cputs("Gd");
gotoxy(46,19); cputs("Tb");
gotoxy(49,19); cputs("Dy");
gotoxy(52,19); cputs("Ho");
gotoxy(55,19); cputs("Er");
gotoxy(58,19); cputs("Tm");
gotoxy(61,19); cputs("Yb");
gotoxy(62,19); cputs("Lu");
textcolor(26);
gotoxy(13,21); cputs("Actinides");
gotoxy(25,21); cputs("Th");
gotoxy(28,21); cputs("Pa");
gotoxy(31,21); cputs("U");
gotoxy(34,21); cputs("Np");
gotoxy(37,21); cputs("Pu");
gotoxy(40,21); cputs("Am");
gotoxy(43,21); cputs("Cm");
gotoxy(46,21); cputs("Bk");
gotoxy(49,21); cputs("Cf");
gotoxy(52,21); cputs("Ea");
gotoxy(55,21); cputs("Fm");
gotoxy(58,21); cputs("Md");
gotoxy(61,21); cputs("No");
gotoxy(64,21); cputs("Lr");
textcolor(15);
gotoxy(15,24);
cputs("Press Any Key To Continue...");
getch();
return;
}
13
switch(cho)
{
case '1': clrscr();
mainscreen();
gotoxy(22,20);
cprintf("Enter Name Of The Elemnet : ");
gets(nm);
flag=0;
while(file.read((char*)&S,sizeof(S)))
{
if(strcmpi(nm,S.callnm())==0)
{
flag++;
S.print();
}
}
if(flag==0)
{
error();
}
file.close();
goto label2;
case '2': clrscr();
mainscreen();
gotoxy(22,20);
cprintf("Enter Atomic No. Of The Element : ");
cin>>n;
flag=0;
while(file.read((char*)&S,sizeof(S)))
{
if(n==S.callatm())
{
flag++;
S.print();
}
}
if(flag==0)
{
error();
}
file.close();
goto label2;
14
case '3': clrscr();
mainscreen();
gotoxy(22,20);
cprintf("Enter Symbol Of The Element : ");
gets(ch);
int flag=0;
while(file.read((char*)&S,sizeof(S)))
{
if(strcmpi(ch,S.callsym()))
{
flag++;
S.print();
}
}
if(flag==0)
{
error();
}
file.close();
goto label2;
case '4' : file.close();
break;
default : clrscr();
mainscreen();
textcolor(15); gotoxy(60,13);
cprintf("*****************"); gotoxy(60,14);
textcolor(15);
cprintf("*");
textcolor(12+128);
cprintf(" Wrong choice! ");
textcolor(15);
cprintf("*"); gotoxy(60,15);
textcolor(15);
cprintf("*");
textcolor(14);
cprintf(" Retype choice ");
textcolor(15);
cprintf("*"); gotoxy(60,16);textcolor(15);
cprintf("*****************");
goto label2;
}
}
15
void Element::add() //Function to add an Element
{ Element A;
ofstream file("elements.dat",ios::binary|ios::app);
clrscr();
mainscreen();
gotoxy(22,20);
cprintf("Enter Atomic No. Of The Element : ");
cin>>A.atmno;
gotoxy(22,21);
cprintf("Enter Name Of The Element : ");
gets(A.name);
gotoxy(22,22);
cprintf("Enter Symbol Of The Element : ");
gets(A.symbol);
gotoxy(22,23);
cprintf("Enter Weight Of The Element : ");
cin>>A.wt;
gotoxy(22,24);
cprintf("Enter Group Of The Element : ");
gets(A.gp);
gotoxy(22,25);
cprintf("Enter Period Of The Element : ");
gets(A.pd);
file.write((char *)&A,sizeof(A));
file.close();
}
char* Element::callnm()
{ return name; }
int Element::callatm()
{ return atmno; }
char* Element::callsym()
{ return symbol; }
void error()
{ clrscr();
textcolor(4+128);
gotoxy(28,12);
cputs("ELEMENT NOT FOUND!!!!"); //DEFAULT ERROR DISPLAY
textcolor(15);
gotoxy(26,25);
cputs("Press Any Key to go back...");
getch();
return;
}
16
void Element::print() //ELEMENTAL DETAILS
{
clrscr();
textcolor(random(15)+1);
gotoxy(35,5);cputs(name);
gotoxy(34,6);
for(int i=0;i<strlen(name)+2;i++)
cputs("^");
int j=10;
gotoxy(28,j);
cputs(" --------------------- "); gotoxy(28,j+1);
cputs("| Atomic No. : |"); gotoxy(28,j+2);
cputs("| Symbol : |"); gotoxy(28,j+3);
cputs("| Atomic Wt. : |"); gotoxy(28,j+4);
cputs("| Group : |"); gotoxy(28,j+5);
cputs("| Period : |"); gotoxy(28,j+6);
cputs(" --------------------- ");
gotoxy(43,j+1);
cout<<atmno; gotoxy(43,j+2);
cout<<symbol; gotoxy(43,j+3);
cout<<wt; gotoxy(43,j+4);
cputs(gp); gotoxy(43,j+5);
cputs(pd);
gotoxy(26,25);textcolor(15);
cputs("Press Any Key to go back...");
getch();
return;
}
17
SCREENSHOTS
18
19
20
21
22

More Related Content

Similar to Presentation

Getfilestruct zbksh(1)
Getfilestruct zbksh(1)Getfilestruct zbksh(1)
Getfilestruct zbksh(1)
Ben Pope
 
Getfilestruct zbksh
Getfilestruct zbkshGetfilestruct zbksh
Getfilestruct zbksh
Ben Pope
 
TicketBEKA? Ticket booking
TicketBEKA? Ticket bookingTicketBEKA? Ticket booking
TicketBEKA? Ticket booking
Likhith Pujari
 
C code
C codeC code
C code
UET Taxila
 
Chromium Embedded Framework + Go at Brooklyn JS
Chromium Embedded Framework + Go at Brooklyn JSChromium Embedded Framework + Go at Brooklyn JS
Chromium Embedded Framework + Go at Brooklyn JS
quirkey
 
Computer science project work
Computer science project workComputer science project work
Computer science project work
rahulchamp2345
 
TypeScript Go(es) Embedded
TypeScript Go(es) EmbeddedTypeScript Go(es) Embedded
TypeScript Go(es) Embedded
Christoph Engelbert
 
Essentials and Impactful Features of ES6
Essentials and Impactful Features of ES6Essentials and Impactful Features of ES6
Essentials and Impactful Features of ES6
Riza Fahmi
 
ECMAScript2015
ECMAScript2015ECMAScript2015
ECMAScript2015qmmr
 
An Introduction To jQuery
An Introduction To jQueryAn Introduction To jQuery
An Introduction To jQuery
Andy Gibson
 
Stupid Awesome Python Tricks
Stupid Awesome Python TricksStupid Awesome Python Tricks
Stupid Awesome Python Tricks
Bryan Helmig
 
Zoo management adri jovin
Zoo management  adri jovinZoo management  adri jovin
Zoo management adri jovinAdri Jovin
 
Penumbra: Automatically Identifying Failure-Relevant Inputs (ISSTA 2009)
Penumbra: Automatically Identifying Failure-Relevant Inputs (ISSTA 2009)Penumbra: Automatically Identifying Failure-Relevant Inputs (ISSTA 2009)
Penumbra: Automatically Identifying Failure-Relevant Inputs (ISSTA 2009)James Clause
 
ma project
ma projectma project
ma projectAisu
 
Helvetia
HelvetiaHelvetia
Helvetia
ESUG
 
Java Unicode with Live GUI Examples
Java Unicode with Live GUI ExamplesJava Unicode with Live GUI Examples
Java Unicode with Live GUI Examples
Abdul Rahman Sherzad
 
Java Unicode with Cool GUI Examples
Java Unicode with Cool GUI ExamplesJava Unicode with Cool GUI Examples
Java Unicode with Cool GUI Examples
OXUS 20
 
54602399 c-examples-51-to-108-programe-ee01083101
54602399 c-examples-51-to-108-programe-ee0108310154602399 c-examples-51-to-108-programe-ee01083101
54602399 c-examples-51-to-108-programe-ee01083101
premrings
 
Deepak Soni ,BCA Third Year
Deepak Soni ,BCA Third YearDeepak Soni ,BCA Third Year
Deepak Soni ,BCA Third Year
Dezyneecole
 

Similar to Presentation (20)

Getfilestruct zbksh(1)
Getfilestruct zbksh(1)Getfilestruct zbksh(1)
Getfilestruct zbksh(1)
 
Getfilestruct zbksh
Getfilestruct zbkshGetfilestruct zbksh
Getfilestruct zbksh
 
TicketBEKA? Ticket booking
TicketBEKA? Ticket bookingTicketBEKA? Ticket booking
TicketBEKA? Ticket booking
 
C code
C codeC code
C code
 
Chromium Embedded Framework + Go at Brooklyn JS
Chromium Embedded Framework + Go at Brooklyn JSChromium Embedded Framework + Go at Brooklyn JS
Chromium Embedded Framework + Go at Brooklyn JS
 
Computer science project work
Computer science project workComputer science project work
Computer science project work
 
TypeScript Go(es) Embedded
TypeScript Go(es) EmbeddedTypeScript Go(es) Embedded
TypeScript Go(es) Embedded
 
Essentials and Impactful Features of ES6
Essentials and Impactful Features of ES6Essentials and Impactful Features of ES6
Essentials and Impactful Features of ES6
 
ECMAScript2015
ECMAScript2015ECMAScript2015
ECMAScript2015
 
An Introduction To jQuery
An Introduction To jQueryAn Introduction To jQuery
An Introduction To jQuery
 
Stupid Awesome Python Tricks
Stupid Awesome Python TricksStupid Awesome Python Tricks
Stupid Awesome Python Tricks
 
Zoo management adri jovin
Zoo management  adri jovinZoo management  adri jovin
Zoo management adri jovin
 
Penumbra: Automatically Identifying Failure-Relevant Inputs (ISSTA 2009)
Penumbra: Automatically Identifying Failure-Relevant Inputs (ISSTA 2009)Penumbra: Automatically Identifying Failure-Relevant Inputs (ISSTA 2009)
Penumbra: Automatically Identifying Failure-Relevant Inputs (ISSTA 2009)
 
ma project
ma projectma project
ma project
 
Helvetia
HelvetiaHelvetia
Helvetia
 
Java Unicode with Live GUI Examples
Java Unicode with Live GUI ExamplesJava Unicode with Live GUI Examples
Java Unicode with Live GUI Examples
 
Java Unicode with Cool GUI Examples
Java Unicode with Cool GUI ExamplesJava Unicode with Cool GUI Examples
Java Unicode with Cool GUI Examples
 
54602399 c-examples-51-to-108-programe-ee01083101
54602399 c-examples-51-to-108-programe-ee0108310154602399 c-examples-51-to-108-programe-ee01083101
54602399 c-examples-51-to-108-programe-ee01083101
 
Bluespec @waseda
Bluespec @wasedaBluespec @waseda
Bluespec @waseda
 
Deepak Soni ,BCA Third Year
Deepak Soni ,BCA Third YearDeepak Soni ,BCA Third Year
Deepak Soni ,BCA Third Year
 

Recently uploaded

GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
nkrafacyberclub
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Jemma Hussein Allen
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
ControlCase
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
Alpen-Adria-Universität
 
UiPath Community Day Dubai: AI at Work..
UiPath Community Day Dubai: AI at Work..UiPath Community Day Dubai: AI at Work..
UiPath Community Day Dubai: AI at Work..
UiPathCommunity
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
Ralf Eggert
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
UiPathCommunity
 
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
James Anderson
 
Quantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIsQuantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIs
Vlad Stirbu
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Nexer Digital
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
OnBoard
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
mikeeftimakis1
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 
RESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for studentsRESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for students
KAMESHS29
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
Kari Kakkonen
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...
sonjaschweigert1
 

Recently uploaded (20)

GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
 
UiPath Community Day Dubai: AI at Work..
UiPath Community Day Dubai: AI at Work..UiPath Community Day Dubai: AI at Work..
UiPath Community Day Dubai: AI at Work..
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
 
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
 
Quantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIsQuantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIs
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 
RESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for studentsRESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for students
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...
 

Presentation

  • 1.
  • 2. INDEX ■Certificate 2 ■Acknowledgement 3 ■Flow Chart 4 ■Source Code 6 ■Screenshots 18 1
  • 3. 2
  • 4. ACKNOWLEDGEMENT I express my sincere gratitude to Principal Ms.Anila Jayachandran and Vice Principal Ms.Vijayalakshmi for giving me this great opportunity, and providing all the facilities required for this project I am extremely grateful to Ms.Suma U , for her valuable guidance, constant support and useful suggestions. I express my heartfelt thanks to my parents for their blessings. I also thank my group members who contributed immensely to the projects and friends for their constructive criticism which evolved this project. I would also like to thank the CBSE for this opportunity to explore beyond the regular syllabus thereby providing great exposure to the world of programming. 3
  • 6. 5
  • 8. include<fstream.h> #include<stdio.h> #include<conio.h> //HEADER FILES USED #include<stdlib.h> #include<dos.h> #include<string.h> void intro(); void mainscreen(); //SKELETAL FUNTIONS void frame(); void outro(); void error(); void display(); class Element { private: int atmno; char name[25],symbol[3],gp[10],pd[10]; //Class for Element float wt; public: void add(); void search(); void print(); char* callnm(); int callatm(); char* callsym(); }; 7
  • 9. void main() { Element E; char cho; clrscr(); //MAIN BODY intro(); clrscr(); mainscreen(); label1: fstream file("elements.dat",ios::in|ios::out|ios::binary); file.seekg(0); textcolor(10);gotoxy(22,14); cprintf(" ------------------------------- "); gotoxy(22,15); cprintf("| 1.Display The Periodic Table |"); gotoxy(22,16); cprintf("| |"); gotoxy(22,17); cprintf("| 2.Search For An Element |"); gotoxy(22,18); cprintf("| |"); gotoxy(22,19); cprintf("| 3.Add an Element |"); gotoxy(22,20); cprintf("| |"); gotoxy(22,21); cprintf("| 4.Exit |"); gotoxy(22,22); cprintf(" ------------------------------- "); gotoxy(22,24);textcolor(15); cprintf("Enter Your Choice...."); cho=getch(); switch(cho) { case '1': display(); break; case '2': E.search(); break; case '3': E.add(); break; case '4': { clrscr(); outro(); getch(); exit(1); break; } 8
  • 10. default: { clrscr(); mainscreen(); textcolor(15); gotoxy(60,13); cprintf("*****************"); gotoxy(60,14); textcolor(15); cprintf("*"); textcolor(12+128); cprintf(" Wrong choice! "); textcolor(15); cprintf("*"); gotoxy(60,15); textcolor(15); cprintf("*"); textcolor(14); cprintf(" Retype choice "); textcolor(15); cprintf("*"); gotoxy(60,16);textcolor(15); cprintf("*****************"); goto label1; } } clrscr(); mainscreen(); file.close(); goto label1; } void intro() { clrscr(); randomize(); //INTRO ANIMATION for(int j=20;j>1;j--) { textcolor(random(15)+1); delay(1); gotoxy(17,j); cputs("#### #### #### ##### ##### #### ##### ##### "); gotoxy(17,j+1); cputs("# # # # # # # # # # # # "); gotoxy(17,j+2); cputs("#### ### #### # # # # # # # "); gotoxy(17,j+3); cputs("# # # # # # # # # # # "); gotoxy(17,j+4); cputs("# #### # # ##### ##### #### ##### ##### "); gotoxy(25,j+7); cputs("##### ### #### # ##### "); gotoxy(25,j+8); cputs(" # # # # # # # "); gotoxy(25,j+9); cputs(" # ##### #### # ### "); gotoxy(25,j+10); cputs(" # # # # # # # "); gotoxy(25,j+11); cputs(" # # # #### ##### ##### "); gotoxy(100,100); delay(100); clrscr(); } 9
  • 11. textcolor(15); gotoxy(17,2); cputs("#### #### #### ##### ##### #### ##### ##### "); gotoxy(17,3); cputs("# # # # # # # # # # # # "); gotoxy(17,4); cputs("#### ### #### # # # # # # # "); gotoxy(17,5); cputs("# # # # # # # # # # # "); gotoxy(17,6); cputs("# #### # # ##### ##### #### ##### ##### "); gotoxy(25,8); cputs("##### ### #### # ##### "); gotoxy(25,9); cputs(" # # # # # # # "); gotoxy(25,10); cputs(" # ##### #### # ### "); gotoxy(25,11); cputs(" # # # # # # # "); gotoxy(25,12); cputs(" # # # #### ##### ##### "); gotoxy(26,25); cputs("Press Any Key To Continue..."); getch(); } void mainscreen() //MAINSCREEN GRAPHIC { textcolor(15); gotoxy(17,2); cputs("#### #### #### ##### ##### #### ##### ##### "); gotoxy(17,3); cputs("# # # # # # # # # # # # "); gotoxy(17,4); cputs("#### ### #### # # # # # # # "); gotoxy(17,5); cputs("# # # # # # # # # # # "); gotoxy(17,6); cputs("# #### # # ##### ##### #### ##### ##### "); gotoxy(25,8); cputs("##### ### #### # ##### "); gotoxy(25,9); cputs(" # # # # # # # "); gotoxy(25,10); cputs(" # ##### #### # ### "); gotoxy(25,11); cputs(" # # # # # # # "); gotoxy(25,12); cputs(" # # # #### ##### ##### "); gotoxy(100,100); } void outro() { //EXIT ANIMATION clrscr(); randomize(); for(int j=20;j>1;j--) { textcolor(random(15)+1); delay(1); gotoxy(26,j); cputs("##### # # ### ## # # # "); gotoxy(26,j+1); cputs(" # # # # # # # # # # "); gotoxy(26,j+2); cputs(" # ##### ##### # # # ## "); gotoxy(26,j+3); cputs(" # # # # # # # # # # "); gotoxy(26,j+4); cputs(" # # # # # # ## # #"); gotoxy(26,j+6); cputs(" # # ### # # "); gotoxy(26,j+7); cputs(" # # # # # # "); gotoxy(26,j+8); cputs(" # # # # # "); gotoxy(26,j+9); cputs(" # # # # # "); gotoxy(26,j+10); cputs(" # ### ### "); gotoxy(0,0); delay(100); clrscr(); } 10
  • 12. for(j=20;j>1;j--) { textcolor(15); delay(10); gotoxy(29,j); cputs(" --------------------- "); gotoxy(29,j+1); cputs("| Done BY:- |"); gotoxy(29,j+2); cputs("| |"); gotoxy(29,j+3); cputs("| Abhinand Krishna |"); gotoxy(29,j+4); cputs("| Abhay Menon |"); gotoxy(29,j+5); cputs("| Abhinav Asokan |"); gotoxy(29,j+6); cputs("| A. Neelkamal |"); gotoxy(29,j+7); cputs(" ----------------------"); delay(300); clrscr(); } exit(0); } void display() { clrscr(); //PERIODIC TABLE frame(); gotoxy(31,2);cputs("PERIODIC TABLE"); gotoxy(31,3);cputs("^^^^^^^^^^^^^^"); textcolor(15+128); gotoxy(6,4); cputs("H"); textcolor(4); gotoxy(6,6); cputs("Li"); gotoxy(6,8); cputs("Na"); gotoxy(6,10);cputs("K"); gotoxy(6,12); cputs("Rb"); gotoxy(6,14); cputs("Cs"); gotoxy(6,16); cputs("Fr"); textcolor(6); gotoxy(10,6); cputs("Be"); gotoxy(10,8); cputs("Mg"); gotoxy(10,10); cputs("Ca"); gotoxy(10,12); cputs("Sr"); gotoxy(10,14); cputs("Ba"); gotoxy(10,16); cputs("Ra"); textcolor(14); gotoxy(14,10); cputs("Sc"); gotoxy(14,12); cputs("Y"); textcolor(12); gotoxy(14,14); cputs("La"); textcolor(10); gotoxy(14,16); cputs("Ac"); textcolor(14); gotoxy(18,10); cputs("Ti"); gotoxy(18,12); cputs("Zr"); gotoxy(18,14); cputs("Hf"); gotoxy(18,16); cputs("Rf"); gotoxy(22,10); cputs("V"); gotoxy(22,12); cputs("Nb"); gotoxy(22,14); cputs("Ta"); gotoxy(22,16); cputs("Db"); gotoxy(26,10); cputs("Cr"); gotoxy(26,12); cputs("Mo"); 11
  • 13. gotoxy(26,14); cputs("W"); gotoxy(26,16); cputs("Un"); gotoxy(30,10); cputs("Mn"); gotoxy(30,12); cputs("Tc"); gotoxy(30,14); cputs("Re"); gotoxy(30,16); cputs("Ns"); gotoxy(34,10); cputs("Fe"); gotoxy(34,12); cputs("Ru"); gotoxy(34,14); cputs("Os"); gotoxy(34,16); cputs("Hs"); gotoxy(38,10); cputs("Co"); gotoxy(38,12); cputs("Rh"); gotoxy(38,14); cputs("Ir"); gotoxy(38,16); cputs("Mt"); gotoxy(42,10); cputs("Ni"); gotoxy(42,12); cputs("Pd"); gotoxy(42,14); cputs("Pt"); gotoxy(42,16); cputs("Ds"); gotoxy(46,10); cputs("Cu"); gotoxy(46,12); cputs("Ag"); gotoxy(46,14); cputs("Au"); gotoxy(46,16); cputs("Rg"); gotoxy(50,10); cputs("Zn"); gotoxy(50,12); cputs("Cd"); gotoxy(50,14); cputs("Hg"); gotoxy(50,16); cputs("Cn"); textcolor(3); gotoxy(54,6); cputs("B"); textcolor(2); gotoxy(54,8); cputs("Al"); gotoxy(54,10); cputs("Ga"); gotoxy(54,12); cputs("In"); gotoxy(54,14); cputs("Tl"); gotoxy(54,16); cputs("Uut"); textcolor(10); gotoxy(58,6); cputs("C"); textcolor(3); gotoxy(58,8); cputs("Si"); gotoxy(58,10); cputs("Ge"); textcolor(2); gotoxy(58,12); cputs("Sn"); gotoxy(58,14); cputs("Pb"); gotoxy(58,16); cputs("Fl"); textcolor(10); gotoxy(62,6); cputs("N"); gotoxy(62,8); cputs("P"); textcolor(3); gotoxy(62,10); cputs("As"); gotoxy(62,12); cputs("Sb"); textcolor(2); gotoxy(62,14); cputs("Bi"); gotoxy(62,16); cputs("Uup"); textcolor(10); gotoxy(66,6); cputs("O"); gotoxy(66,8); cputs("S"); gotoxy(66,10); cputs("Se"); textcolor(3); gotoxy(66,12); cputs("Te"); gotoxy(66,14); cputs("Po"); textcolor(2); gotoxy(66,16); cputs("Lv"); 12
  • 14. textcolor(5); gotoxy(70,6); cputs("F"); gotoxy(70,8); cputs("Cl"); gotoxy(70,10); cputs("Br"); gotoxy(70,12); cputs("I"); gotoxy(70,14); cputs("At"); gotoxy(70,16); cputs("Uus"); textcolor(9); gotoxy(74,4); cputs("He"); gotoxy(74,6); cputs("Ne"); gotoxy(74,8); cputs("Ar"); gotoxy(74,10); cputs("Kr"); gotoxy(74,12); cputs("Xe"); gotoxy(74,14); cputs("Rn"); gotoxy(74,16); cputs("Uuo"); textcolor(12); gotoxy(12,19); cputs("Lanthanides"); gotoxy(25,19); cputs("Ce"); gotoxy(28,19); cputs("Pr"); gotoxy(31,19); cputs("Nd"); gotoxy(34,19); cputs("Pm"); gotoxy(37,19); cputs("Sm"); gotoxy(40,19); cputs("Eu"); gotoxy(43,19); cputs("Gd"); gotoxy(46,19); cputs("Tb"); gotoxy(49,19); cputs("Dy"); gotoxy(52,19); cputs("Ho"); gotoxy(55,19); cputs("Er"); gotoxy(58,19); cputs("Tm"); gotoxy(61,19); cputs("Yb"); gotoxy(62,19); cputs("Lu"); textcolor(26); gotoxy(13,21); cputs("Actinides"); gotoxy(25,21); cputs("Th"); gotoxy(28,21); cputs("Pa"); gotoxy(31,21); cputs("U"); gotoxy(34,21); cputs("Np"); gotoxy(37,21); cputs("Pu"); gotoxy(40,21); cputs("Am"); gotoxy(43,21); cputs("Cm"); gotoxy(46,21); cputs("Bk"); gotoxy(49,21); cputs("Cf"); gotoxy(52,21); cputs("Ea"); gotoxy(55,21); cputs("Fm"); gotoxy(58,21); cputs("Md"); gotoxy(61,21); cputs("No"); gotoxy(64,21); cputs("Lr"); textcolor(15); gotoxy(15,24); cputs("Press Any Key To Continue..."); getch(); return; } 13
  • 15. switch(cho) { case '1': clrscr(); mainscreen(); gotoxy(22,20); cprintf("Enter Name Of The Elemnet : "); gets(nm); flag=0; while(file.read((char*)&S,sizeof(S))) { if(strcmpi(nm,S.callnm())==0) { flag++; S.print(); } } if(flag==0) { error(); } file.close(); goto label2; case '2': clrscr(); mainscreen(); gotoxy(22,20); cprintf("Enter Atomic No. Of The Element : "); cin>>n; flag=0; while(file.read((char*)&S,sizeof(S))) { if(n==S.callatm()) { flag++; S.print(); } } if(flag==0) { error(); } file.close(); goto label2; 14
  • 16. case '3': clrscr(); mainscreen(); gotoxy(22,20); cprintf("Enter Symbol Of The Element : "); gets(ch); int flag=0; while(file.read((char*)&S,sizeof(S))) { if(strcmpi(ch,S.callsym())) { flag++; S.print(); } } if(flag==0) { error(); } file.close(); goto label2; case '4' : file.close(); break; default : clrscr(); mainscreen(); textcolor(15); gotoxy(60,13); cprintf("*****************"); gotoxy(60,14); textcolor(15); cprintf("*"); textcolor(12+128); cprintf(" Wrong choice! "); textcolor(15); cprintf("*"); gotoxy(60,15); textcolor(15); cprintf("*"); textcolor(14); cprintf(" Retype choice "); textcolor(15); cprintf("*"); gotoxy(60,16);textcolor(15); cprintf("*****************"); goto label2; } } 15
  • 17. void Element::add() //Function to add an Element { Element A; ofstream file("elements.dat",ios::binary|ios::app); clrscr(); mainscreen(); gotoxy(22,20); cprintf("Enter Atomic No. Of The Element : "); cin>>A.atmno; gotoxy(22,21); cprintf("Enter Name Of The Element : "); gets(A.name); gotoxy(22,22); cprintf("Enter Symbol Of The Element : "); gets(A.symbol); gotoxy(22,23); cprintf("Enter Weight Of The Element : "); cin>>A.wt; gotoxy(22,24); cprintf("Enter Group Of The Element : "); gets(A.gp); gotoxy(22,25); cprintf("Enter Period Of The Element : "); gets(A.pd); file.write((char *)&A,sizeof(A)); file.close(); } char* Element::callnm() { return name; } int Element::callatm() { return atmno; } char* Element::callsym() { return symbol; } void error() { clrscr(); textcolor(4+128); gotoxy(28,12); cputs("ELEMENT NOT FOUND!!!!"); //DEFAULT ERROR DISPLAY textcolor(15); gotoxy(26,25); cputs("Press Any Key to go back..."); getch(); return; } 16
  • 18. void Element::print() //ELEMENTAL DETAILS { clrscr(); textcolor(random(15)+1); gotoxy(35,5);cputs(name); gotoxy(34,6); for(int i=0;i<strlen(name)+2;i++) cputs("^"); int j=10; gotoxy(28,j); cputs(" --------------------- "); gotoxy(28,j+1); cputs("| Atomic No. : |"); gotoxy(28,j+2); cputs("| Symbol : |"); gotoxy(28,j+3); cputs("| Atomic Wt. : |"); gotoxy(28,j+4); cputs("| Group : |"); gotoxy(28,j+5); cputs("| Period : |"); gotoxy(28,j+6); cputs(" --------------------- "); gotoxy(43,j+1); cout<<atmno; gotoxy(43,j+2); cout<<symbol; gotoxy(43,j+3); cout<<wt; gotoxy(43,j+4); cputs(gp); gotoxy(43,j+5); cputs(pd); gotoxy(26,25);textcolor(15); cputs("Press Any Key to go back..."); getch(); return; } 17
  • 20. 19
  • 21. 20
  • 22. 21
  • 23. 22