0% found this document useful (0 votes)
26 views6 pages

Atomic Mass Calculation for 60 Elements

This program allows users to input the name and atomic number of an element between 1 and 60 and will output the element's atomic mass. For elements 1-20, it uses different calculations for even and odd atomic numbers, with exceptions. Elements 21-60 use tricks like multiplying the atomic number by two and adding other numbers. The program is meant to calculate atomic masses without needing an external source like a book.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd

Topics covered

  • data types,
  • looping,
  • user input,
  • element properties,
  • atomic mass,
  • first 60 elements,
  • user interaction,
  • programming logic,
  • mass number of other elements,
  • coding
0% found this document useful (0 votes)
26 views6 pages

Atomic Mass Calculation for 60 Elements

This program allows users to input the name and atomic number of an element between 1 and 60 and will output the element's atomic mass. For elements 1-20, it uses different calculations for even and odd atomic numbers, with exceptions. Elements 21-60 use tricks like multiplying the atomic number by two and adding other numbers. The program is meant to calculate atomic masses without needing an external source like a book.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd

Topics covered

  • data types,
  • looping,
  • user input,
  • element properties,
  • atomic mass,
  • first 60 elements,
  • user interaction,
  • programming logic,
  • mass number of other elements,
  • coding

CALCULATION OF ATOMIC MASS

PROJECT REPORT

SUBMITTED BY

V K SHREE VARSHA

KIRUBASHINI V

SAHAANA K

GRADE: XI - 'A'

GEDEE PUBLIC SCHOOL

COIMBATORE

2023-2024
CALCULATING THE ATOMIC MASS OF FIRST 60 ELEMENTS

ABSTRACT:

In this program, the input from the user will be received for any element between 1
to 60 of the periodic table with their atomic number and names. The elements with odd atomic
numbers and even atomic numbers will have separate coding to find the atomic mass from 1 to
20, this will also include 4 exceptional cases with their assigned value. The elements from 21-60
will have separate coding according to the tricks (multiplying the atomic number by two and
then adding certain numbers with them to find their atomic mass) used to find their atomic
mass, without any exceptional cases. The advantage of this program is to know the atomic mass
of first 60 elements without the use of book or any other sources.

CODING:

print("Gedee Public School")

print("Team : V K Shree Varsha, Kirubashini V, Sahaana K")

print("TOPIC : Calculating the mass number of first 60 elements of the periodic table")

ele=input("\nEnter an ELEMENT NAME from 1 to 60: ")

am=int(input("Enter the atomic number of the element: "))

if am<=20:

if am%2==0 and am!=4 and am!=18:

m = am*2

print("The mass number of",ele,"is",m)

elif am%2==1 and am!=7 and am!=17:

m1=am*2+1

print("The mass number of",ele,"is",m1)

else:

if am==4:

print("The mass number of Boron is 9")


if am==7:

print("The mass number of Nitrogen is 14")

if am==17:

print("The mass number of Chlorine is 35.5")

if am==18:

print("The mass number of Argon is 40")

if am<=30and am>20:

if am==21 or am==28:

m3=am*2+3

print("The mass number of”, ele," is ",m3)

if am==22 or am==24 or am==26 or am==29:

m4=am*2+4

print("The mass number of",ele,"is",m4)

else:

m5=am*2+5

print("The mass number of",ele,"is",m5)

if am<=40 and am>30:

if am==36 or am==38 or am==37 or am==40:

m6=am*2+11

print("The mass number of",ele,"is",m6)

if am==34 or am==39:

m7=am*2+10

print("The mass number of",ele,"is",m7)

if am==33 or am==32:
m8=am*2+8

print("The mass number of",ele,"is",m8)

if am==31:

m9=am*2+7

print("The mass number of",ele,"is",m9)

if am==35:

m10=am*2+9

print("The mass number of",ele,"is",m10)

if am<=50 and am>40:

if am==41:

m11=am*2+11

print("The mass number of",ele,"is",m11)

if am==45 or am==42:

m12=am*2+12

print("The mass number of",ele,"is",m12)

if am==44 or am==43:

m13=am*2+13

print("The mass number of",ele,"is",m13)

if am==47 or am==46:

m14=am*2+14

print("The mass number of",ele,"is",m14)

if am==48:

m15=am*2+16

print("The mass number of",ele,"is",m15)


if am==49:

m16=am*2+17

print("The mass number of",ele,"is",m16)

if am==50:

m17=am*2+18

print("The mass number of",ele,"is",m17)

if am<=60 and am>50:

if am==58 or am==59:

m18=140

print("The mass number of",ele,"is",m18)

if am== 51:

m19=121

print("The mass number of",ele,"is",m19)

if am==52:

m20=127

print("The mass number of",ele,"is",m20)

if am==53:

m21=126

print("The mass number of",ele,"is",m21)

if am==54:

m22=131

print("The mass number of",ele,"is",m22)

if am==55:

m23=132
print("The mass number of",ele,"is",m23)

if am==56:

m24=137

print("The mass number of",ele,"is",m24)

if am==57:

m25=138

print("The mass number of",ele,"is",m25)

if am==60:

m26=144

print("The mass number of",ele,"is",m26)

if am>60:

print("Please, enter an atomic number from 1 to 60 only!")

OUTPUT:

Gedee Public School

Team : V K Shree Varsha, Kirubashini V, Sahaana K

TOPIC : Calculating the mass number of first 60 elements of the periodic table

Enter an ELEMENT NAME from 1 to 60: sodium

Enter the atomic number of the element: 11

The mass number of sodium is 23

You might also like