You are on page 1of 26

K L (Deemed to be) UNIVERSITY

FRESHMAN ENGINEERING DEPARTMENT

A Project On:-

MODERN PERIODIC TABLE.!

SUBMITTED BY:-

I’d Number Student Name

2000010100 Pachipala Yamini Harshitha.

UNDER THE ESTEEMED GUIDANCE OF

Mr.G.K.Chakravarthy
ASST. PROFESSOR

KL UNIVERSITY

Green fields, Vaddeswaram – 522 502

Guntur Dt., AP, India.

DEPARTMENT OF BASIC ENGINEERING SCIENCES

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.

PROJECT SUPERVISOR HEAD OF THE DEPARTMENT


Mr.G.K.Chakravarthy Dr.D.Haritha

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.

I express my sincere thanks to our project supervisor Mr.G.K Chakravarthy


for his/her novel association of ideas, encouragement, appreciation and
intellectual zeal which motivated us to venture this project successfully.

Finally, it is pleased to acknowledge the indebtedness to all those who devoted


themselves directly or indirectly to make this project report success.

SUBMITTED BY:-

I’d Number Student Name

2000010100 Pachipala Yamini Harshitha.

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 Aim of the Project 8

2.1 Advantages 8

2.2 Disadvantage 8

2.3 Future Implementation 8

3 System Requirements 9

4 Algorithm 10

5 Data Diagram 12

6 Implementation 13

7 Integration and system Testing 23

8 Conclusion 26

INTRODUCTION

Problem definition: The problem is used to find elements by using atomic


weight , atomic number,element symbol in the modern periodic table

Introduction to periodic table :

We have used

 Elements

5
 Atomic weight
 Atomic number
 Element symbol

For solving problem

For implementation C language:

 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() : It is included in source code of project file in order to


print the text style and to control its color.

 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.

 Exploration of element Information: Another main function of this


project is to explore or to display the stored information. You can search an
element by using any of the following method:

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

AIM OF THE PROJECT

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:-

There are no disadvantages in particular

If you want to search by Atomic weight,you have to mention the exact weight

2.3 Future enhancements:-

With this program we can easily search any element and know about its
properties.

We don’t need to reach any book for that.

SYSTEM REQUIREMENTS

SOFTWARE REQUIREMENTS:

8
The major software requirements of the project are as follows:

Language : Online GDB compiler

Operating system : Windows 10

HARDWARE REQUIREMENTS:

The hardware requirements that map towards the software are as follows:

RAM : 8GB

Processor : Intel i5 processor

ALGORITHM

Step1 : Start.

Step 2 : Enter new element, explore, exit program.

9
Step 3 : If section is correct it goes to step 4 otherwise step 5.

Step 4 : Enter information of elements, name, symbol, atomic number, atomic


weight.

Step 5 : If section 2 is correct it goes to step 6 otherwise step 7.

Step 6 : Enter the corresponding numbers, search by name, Search by symbol,


search by atomic number, search by atomic, Weight, return by main menu.

Step 7 : Selected name, if steep 7 is correct it goes to step 8 otherwise step 9.

Step 8 : Enter the name of the compound.

Step 9 : Selected symbol, if step 9 is correct it goes to step 11

Otherwise step 10.

Step 10 : Selected symbol, if step 10 is correct it goes to step 11 otherwise


step12.

Step 11 : Enter the symbol of compound.

Step 12 : Selected atomic number, if step 12 is correct it goes to step 13


otherwise step 14.

Step 13 : Enter the atomic number of compound.

Step 14 : Selected atomic weight, if step 14 is correct it goes to step 15


otherwise step 16.

Step 15 : Enter the atomic weight of compound.

Step 16 : Section 6.

Step17 : If step16 is correct it goes to step 18 otherwise step19.

Step 18 : Go to stop.

Step 19 : Section is 3, if step 19 is correct it goes to step 18

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

"Sodium", "Magnesium", "Aluminium", "Silicon", "Phosphorus", "Sulphur",


"Chlorine", "Argon",

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

case 5: exit (0);

default: system("cls");

printf("\n\n\t\t\t\tWrong Choice!\n");

printf("\n\t\t\t\tLet's try it again, Shall we ?\n\n");

printf("\n\t\t\t\tLet's try it again, Shall we ?\n\n");

if (i== -1)

system("cls");

printf("\t\t\t\t\t\tOops ! \n\t\t\t\t\tNo Such element present !\n");

printf("\t\t\t\t Make a right choice this time !\n\n");

else if (i==999)

continue;

else

show(i);

while (1);

16
int

get_option()

int option;

printf("\n\nEnter the corresponding number :\n\n");

printf("1. Search by ATOMIC NUMBER\n");

printf("2. Search by ATOMIC SYMBOL\n");

printf("3. Search by ATOMIC NAME\n");

printf("4. Search by ATOMIC WEIGHT\n");

printf("5. QUIT\n");

printf("\nEnter Your Choice : ");

scanf("%d",&option);

return option;

int

atomic_number(void)

int n;

FILE*fp;

fp = (fopen("C:\\atomic_weighta.txt", "w"));

if(fp!=NULL);

printf("\nEnter the Atomic Number you want to search for : ");

scanf("%d",&n);

17
n--;

if (n>=0 && n<112)

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

printf("\nEnter the Atomic Name you want to search for : ");

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

printf("\nEnter the Atomic Symbol you want to search for : ");

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

printf("\nEnter the Atomic Weight you want to search for : ");

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)

printf("\n\t\t\t\t\t HERE'S YOUR SEARCH RESULT\n\n");

printf("\n\t\t\t\t\tAtomic Number : %d\n",(i+1));

printf("\t\t\t\t\tAtomic Symbol : %s\n",symbol[i]);

printf("\t\t\t\t\tAtomic Name : %s\n",name[i]);

printf("\t\t\t\t\tAtomic Weight : %.2f\n",weight[i]);

printf("\n\t\t\t\t\t\tThank You ! \n\n\n");

21
LINK FOR THE PROJECT CODE :-

https://onlinegdb.com/SyVPV8nyu

22
INTEGRATION AND SYSTEM TESTING

Outputs :-

23
24
25
CONCLUSION

A program for modern periodic table is complete

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

You can search an element by using any of the following method:

1. By name of element
2. By symbol of element
3. By atomic number of element
4. By atomic weight of element

26

You might also like