Professional Documents
Culture Documents
A Project On:-
SUBMITTED BY:-
Mr.G.K.Chakravarthy
ASST. PROFESSOR
KL UNIVERSITY
1
CERTIFICATE
This is to certify that the project based laboratory report entitled “Modern
Periodic Table” submitted by Pachipala Yamini Harshitha bearing Regd.
No.2000010100 to the Department of Basic Engineering Sciences-1, KL
University in partial fulfillment of the requirements for the completion of a
project based Laboratory in “Computational Thinking for Design”course in I
B Tech I Semester, is a bonafide record of the work carried out by him under
my supervision during the academic year 2020-2021.
ACKNOWLEDGEMENTS
2
It is great pleasure for me to express my gratitude to our honorable President
Sri. Koneru Satyanarayana, for giving the opportunity and platform with
facilities in accomplishing the project based laboratory report.
I express the sincere gratitude to our director Dr. A Jagadeesh for his
administration towards our academic growth.
I express sincere gratitude to our Coordinator and HOD-BES Dr. D.Haritha for
her leadership and constant motivation provided in successful completion of our
academic semester. I record it as my privilege to deeply thank for providing us
the efficient faculty and facilities to make our ideas into reality.
SUBMITTED BY:-
ABSTRACT
3
The Modern Periodic Table project is a simple console application built without
the use of graphics. It is developed using the C programming language for the
purpose of storing name, symbol, atomic number, atomic weight, and some
important properties as well as to display them as per requirement of the user.
This project will help you to understand file handling in C i.e. creating a file and
accessing the stored data in the file, modifying and removing the stored data. It
will also help you to understand the use of functions as well as different
parameters of C programming language.
INDEX
4
S.NO TITLE PAGE NO
1 Introduction 6
2.1 Advantages 8
2.2 Disadvantage 8
3 System Requirements 9
4 Algorithm 10
5 Data Diagram 12
6 Implementation 13
8 Conclusion 26
INTRODUCTION
We have used
Elements
5
Atomic weight
Atomic number
Element symbol
void add() : This function is used to input or add the information of new
element to the program.
void explor() : This function is used to explore the stored information in the
file created.
void mainscreen() : This function is used to print the main screen or menu
of the project.
The key features of Modern Periodic Table mini project in C are briefly
described below:
Storage of Element Information: In the project, you can add any new
element with its name, symbol, atomic number, atomic weight and its some
important properties. When new element information is to be added to this
Modern Periodic Table, you have to enter 1 in the main menu and input
information in given format. These information are stored in file created on
the hard disk of computer by program itself.
1. By name of element
2. By symbol of element
3. By atomic number of element
4. By atomic weight of element
6
If you press 3 in the main menu, the program will be terminated
To design a program for creating modern periodic table search by using GDB
online compiler which helps the new users also to search easily the required
elements by typing its name,symbol, atomic number, atomic weight of
elements.
7
2.1 Advantages:-
This project will help you to understand file handling in C i.e. creating a file and
accessing the stored data in the file, modifying and removing the stored data. It
will also help you to understand the use of functions as well as different
parameters of C programming language.
2.2 Disadvantages:-
If you want to search by Atomic weight,you have to mention the exact weight
With this program we can easily search any element and know about its
properties.
SYSTEM REQUIREMENTS
SOFTWARE REQUIREMENTS:
8
The major software requirements of the project are as follows:
HARDWARE REQUIREMENTS:
The hardware requirements that map towards the software are as follows:
RAM : 8GB
ALGORITHM
Step1 : Start.
9
Step 3 : If section is correct it goes to step 4 otherwise step 5.
Step 16 : Section 6.
Step 18 : Go to stop.
10
Step 20 : print “thank you bye”.
Step 21 : Stop.
DATA DIAGRAM
11
IMPLEMENTATION
#include<stdio.h>
#include<string.h>
12
#include<stdlib.h>
int get_option();
int atomic_number();
int atomic_symbol();
int atomic_name();
int atomic_weight();
void show(int);
char name[112]
[20]={"Hydrogen","Helium","Lithium","Beryllium","Boron","Carbon","Nitrogen","Oxygen"
,"Flourine","Neon",
"Potassium","Calcium","Scandium","Titanium","Vanadium","Chromium","Manganes
e","Iron","Cobalt","Nickel","Copper","Zinc",
"Gallium","Germanium","Arsenic","Selenium","Bromine","Krypton",
"Rubidium","Strontium","Yttrium","Zirconium","Niobium","Molybdenum","Techneti
um","Ruthenium","Rhodium","Palladium","Silver","Cadmium",
"Indium","Tin","Antimony","Tellurium","Iodine","Xenon",
"Cesium","Barium","Lanthanum","Cerium","Praseodymium","Neodymium","Promet
hium","Samarium","Europium","Gadolinium","Terbium","Dysprosium",
"Holmium","Erbium","Thulium","Ytterbium","Lutetium",
"Hafnium","Tantalum","Tungsten","Rhenium","Osmium","Iridium","Platinum","Gold
","Mercury","Thallium","Lead","Bismuth","Polonium","Astatine","Radon",
"Francium","Radium","Actinium","Thorium","Protactinium","Uranium","Neptunium
","Plutonium","Americium","Curium","Berkelium",
13
"Californium","Einsteinium","Fermium","Mendelevium","Nobelium","Lawrencium",
"Rutherfordium","Dubnium","Seaborgium","Bohrium","Hassium","Meitnerium","Darmstadti
um","Roentgenium","Copernicium"};
char symbol[112][5]={"H","He","Li","Be","B","C","N","O","F","Ne",
"Na","Mg","Al","Si","P","S","Cl","Ar",
"K","Ca","Sc","Ti","V","Cr","Mn","Fe","Co","Ni","Cu","Zn","Ga","Ge","As","Se","Br","Kr
",
"Rb","Sr","Y","Zr","Nb","Mo","Tc","Ru","Rh","Pd","Ag","Cd","In","Sn","Sb","Te","I","Xe"
,
"Cs","Ba","La","Ce","Pr","Nd","Pm","Sm","Eu","Gd","Tb","Dy","Ho","Er","Tm","Yb","Lu"
,
"Hf","Ta","W","Re","Os","Ir","Pt","Au","Hg","Tl","Pb","Bi","Po","At","Rn",
"Fr","Ra","Ac","Th","Pa","U","Np","Pu","Am","Cm","Bk","Cf","Es","Fm",",M
d","No","Lr",
"Rf","Db","Sg","Bh","Hs","Mt","Ds","Rg","Cn"};
float
weight[112]={1.00,4.00,6.94,9.01,10.81,12.01,14.00,16.00,20.00,20.18,23.00,24.31,26.99,28
.08,30.97,32.06,35.45,39.09,40.07,44.95,47.86,50.94,
51.99,54.93,55.84,58.69,58.93,63.54,65.39,69.7,72.64,74.92,78.96,79.90,83.80,85.46,87.62,8
8.90,91.22,92.90,95.94,98.00,101.07,
102.90,106.42,107.86,112.41,114.81,118.71,121.76,127.6,126.90,131.29,13.90,137.32,138.9
0,140.11,140.90,144.24,145.00,
14
150.36,151.96,157.25,158.92,162.50,164.93,167.5,168.93,173.04,174.96,178.49,180.94,183.
84,186.20,190.23,192.21,195.07,196.97,
200.59,204.38,207.20,208.98,209.00,210.00,222.00,223.00,226.00,227.00,231.03,232.03,237
.00,238.03,243,244,247,247,251,252,257,258,
259,261,262,264,266,268,272,277,276,281,280,285};
int
main()
int i=999,option;
do
option=get_option();
switch (option)
case 1: i=atomic_number();
break;
case 2: i=atomic_symbol();
break;
case 3: i=atomic_name();
printf("%d",i);
break;
15
case 4: i=atomic_weight();
break;
default: system("cls");
printf("\n\n\t\t\t\tWrong Choice!\n");
if (i== -1)
system("cls");
else if (i==999)
continue;
else
show(i);
while (1);
16
int
get_option()
int option;
printf("5. QUIT\n");
scanf("%d",&option);
return option;
int
atomic_number(void)
int n;
FILE*fp;
fp = (fopen("C:\\atomic_weighta.txt", "w"));
if(fp!=NULL);
scanf("%d",&n);
17
n--;
return n;
else
return -1;
fclose(fp);
int
atomic_name(void)
char x[20];
int i,flag=0;
FILE*fp;
fp = (fopen("C:\\atomic_weighta.txt", "w"));
if(fp!=NULL);
scanf(" %s",x);
for (i=0;i<112;i++)
if (strcmp(x,name[i])==0)
flag=1;
break;
18
}
if (flag==1)
return i;
else
return -1;
fclose(fp);
int
atomic_symbol(void)
char x[5];
int i,flag=0;
FILE*fp;
fp = (fopen("C:\\atomic_weighta.txt", "w"));
if(fp!=NULL);
scanf(" %s",x);
for (i=0;i<112;i++)
if (strcmp(x,symbol[i])==0)
19
flag=1;
break;
fclose(fp);
if (flag==1)
return i;
else
return -1;
int
atomic_weight(void)
float x;
int i,flag=0;
FILE*fp;
fp = (fopen("C:\\atomic_weighta.txt", "w"));
if(fp!=NULL);
scanf("%f",&x);
for (i=0;i<112;i++)
20
if (weight[i]==x)
flag=1;
break;
if (flag==1)
return i;
else
return -1;
fclose(fp);
void
show(int i)
21
LINK FOR THE PROJECT CODE :-
https://onlinegdb.com/SyVPV8nyu
22
INTEGRATION AND SYSTEM TESTING
Outputs :-
23
24
25
CONCLUSION
From this project we have used algorithm and data structure to understand the
modern periodic table.And prepare the implementation,it use full for new users
and it also helps in finding elements by its name,symbol,atomic number and
weight of elements.this project helps the chemist and chemistry teachers in easy
way by this software .
In future if they invent new elements they can simply add element in code so
that they can update the software check the elements easily
1. By name of element
2. By symbol of element
3. By atomic number of element
4. By atomic weight of element
26