Kész a projekt

This commit is contained in:
István Priskin 2023-02-09 10:20:07 +01:00
commit f0613edf98
9 changed files with 225 additions and 0 deletions

3
.idea/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
# Default ignored files
/shelf/
/workspace.xml

10
.idea/Kemia.iml Normal file
View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/venv" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

6
.idea/encodings.xml Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding">
<file url="file://$PROJECT_DIR$/felfedezesek.csv" charset="UTF-8" />
</component>
</project>

View File

@ -0,0 +1,6 @@
<component name="InspectionProjectProfileManager">
<settings>
<option name="USE_PROJECT_PROFILE" value="false" />
<version value="1.0" />
</settings>
</component>

4
.idea/misc.xml Normal file
View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.8 (Kemia)" project-jdk-type="Python SDK" />
</project>

8
.idea/modules.xml Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/Kemia.iml" filepath="$PROJECT_DIR$/.idea/Kemia.iml" />
</modules>
</component>
</project>

118
felfedezesek.csv Normal file
View File

@ -0,0 +1,118 @@
Év;Elem;Vegyjel;Rendszám;Felfedező
Ókor;Arany;Au;79;Ismeretlen
Ókor;Ezüst;Ag;47;Ismeretlen
Ókor;Réz;Cu;29;Ismeretlen
Ókor;Ón;Sn;50;Ismeretlen
Ókor;Ólom;Pb;82;Ismeretlen
Ókor;Higany;Hg;80;Ismeretlen
Ókor;Vas;Fe;26;Ismeretlen
Ókor;Kén;S;16;Ismeretlen
Ókor;Szén;C;6;Ismeretlen
1250;Arzén;As;33;Albertus Magnus
1450;Antimon;Sb;51;B. Valentinius (W. Tölde)
1520;Cink;Zn;30;Paracelsus
1669;Foszfor;P;15;H. Brand
1735;Kobalt;Co;27;G. Brandt
1740;Bizmut;Bi;83;I.H. Pott
1741;Platina;Pt;78;Ch. Wood
1751;Nikkel;Ni;28;A. F. Cronstedt
1766;Hidrogén;H;1;Henry Cavendish
1772;Nitrogén;N;7;D. Rutherford
1774;Oxigén;O;8;J. Priestley
1774;Klór;Cl;17;C. W. Scheele
1774;Mangán;Mn;25;J. G. Gahn
1782;Molibdén;Mo;42;P. J. Hjelm
1782;Tellúr;Te;52;F.J. Müller
1783;Volfrám;W;74;J. J. és F. d'Elhuyar
1789;Urán;U;92;M. H. Klaproth (oxid)
1790;Stroncium;Sr;38;A. Crawford
1791;Cirkónium;Zr;40;M. H. Klaproth (oxid)
1791;Titán;Ti;22;W. Gregor (oxid)
1794;Ittrium;Y;39;J. Gadolin (oxid)
1797;Berillium;Be;4;L. N. Vaquelin
1797;Króm;Cr;24;L. N. Vaquelin
1801;Nióbium;Nb;41;C. Hatchett
1802;Tantál;Ta;73;A. G. Ekeberg
1803;Cérium;Ce;58;M. H. Klaproth (oxid)
1803;Palládium;Pd;46;W. H. Wollaston
1803;Ródium;Rh;45;W. H. Wollaston
1804;Ozmium;Os;76;S. Tennant
1804;Irídium;Ir;77;S. Tennant
1807;Kálium;K;19;H. Davy
1807;Nátrium;Na;11;H. Davy
1808;Bárium;Ba;56;H. Davy
1808;Kalcium;Ca;20;H. Davy
1808;Magnézium;Mg;12;H. Davy
1808;Bór;B;5;J. L. Gay-Lusac és Thénard
1811;Jód;I;53;B. Curtois
1817;Kadmium;Cd;48;F.Stromeyer
1817;Lítium;Li;3;J. A. Arvedson
1817;Szelén;Se;34;J. J. Berzelius
1823;Szilícium;Si;14;J. J. Berzelius 1811 Gay-Lusac
1825;Alumínium;Al;13;H. C. Oersted
1826;Bróm;Br;35;A. J. Balard
1828;Tórium;Th;90;J. J. Berzelius
1831;Vanádium;V;23;N. G. Sefstr0m
1839;Lantán;La;57;C. G. Mosander
1843;Erbium;Er;68;C. G. Mosander
1843;Terbium;Tb;65;C. G. Mosander
1844;Ruténium;Ru;44;C. Claus
1860;Cézium;Cs;55;R. W. Bunsen és G. R. Kirchoff
1861;Rubídium;Rb;37;R. W. Bunsen és G. R. Kirchoff
1861;Tallium;Tl;81;W. Crookes
1863;Indium;In;49;F. Reich és T. Richter
1868;Hélium;He;2;P.J.C.Jansen 1869 J.N.Locker
1875;Gallium;Ga;31;L. de Boisbaudran
1878;Itterbium;Yb;70;J. Ch. G. de Marignac
1879;Holmium;Ho;67;P. T. Cleve
1879;Szamárium;Sm;62;L. de Boisbaudran
1879;Szkandium;Sc;21;L. F. Nilson
1879;Túlium;Tu;69;P. T. Cleve
1880;Gadolínium;Gd;64;J. Ch. G. de Marignac
1885;Neodímium;Nd;60;G. Auer von Welsbach
1885;Prazeodímium;Pr;59;G. Auer von Welsbach
1886;Diszprózium;Dy;66;L. de Boisbaudran
1886;Fluor;F;9;H. Moissan
1886;Germánium;Ge;32;C. Winkler
1889;Európium;Eu;63;W. Crookes
1894;Argon;Ar;18;W.Ramsay és J.W.S.Rayleigh
1898;Kripton;Kr;36;W.Ramsay és M.W.Travers
1898;Neon;Ne;10;W.Ramsay és M.W.Travers
1898;Xenon;Xe;54;W.Ramsay és M.W.Travers
1898;Polónium;Po;84;Pierre és Marie Curie
1898;Rádium;Ra;88;Pierre és Marie Curie
1899;Aktínium;Ac;89;A. Debierne
1900;Radon;Rn;86;F. E. Dorn
1907;Lutécium;Lu;71;G. Urbain
1917;Protaktínium;Pa;91;O. Hahn és L. Meitner
1923;Hafnium;Hf;72;Dirk Coster és Hevesy György
1925;Rénium;Re;75;W. és Ida Noddack
1937;Technécium;Tc;43;E. Segre és G. Perrier
1939;Francium;Fr;87;Margueritte Perey
1940;Asztácium;At;85;D.R. Corson, McKenzie és E.Segre
1940;Neptúnium;Np;93;McMillan és O. Abelson
1940;Plutónium;Pu;94;G.T.Seaborg és McMillan
1944;Amerícium;Am;95;G.T.Seaborg, R.A.James, A.Ghiorso és L.O.Morgan
1944;Kűrium;Cm;96;G.T.Seaborg, R.A.James és A.Ghiorso
1945;Prométium;Pm;61;I.A.Marinski és L.E.Glendenin
1949;Berkélium;Bk;97;G.T.Seaborg, G.G.Thompson és A.Ghiorso
1952;Einsteinium;Es;99;A.Ghiorso, G.T.Seaborg, G.G.Thompson, G.H.Higgins, s.m.
1953;Fermium;Fm;100;A.Ghiorso, G.T.Seaborg, G.G.Thompson, G.H.Higgins és m.
1955;Mendelévium;Md;101;A.Ghiorso, G.T.Seaborg, B.G.Harvey és m.
1958;Nobélium;No;102;A.Ghiorso, G.T.Seaborg, T.Sikkeland és m.
1961;Laurencium;Lr;103;A.Ghiorso, T.Sikkeland, R.E.Larsh és R.T.Latimer
1966;Radzerfordium;Rf;104;C.N.Flerov ?
1967;Dubnium;Db;105;Dubna
1974;Sziborgium;Sg;106;University of California, Berkeley
1976;Borium;Bh;107;Y. Oganessian, Dubna
1982;Meitnerium;Mt;109;Peter Armbruster és Gottfried Münzenberg, GSI
1984;Hasszium;Hs;108;Peter Armbruster és Gottfried Münzenberg
1994;Darmstadtium;Ds;110;S. Hofmann, V. Ninov és mások, a GSI-től
1994;Röntgenium;Rg;111;S. Hofmann, V. Ninov és mások, a GSI-től
1996;Kopernícium;Cn;112;S. Hofmann, V. Ninov és mások, a GSI-től
1999;Flerovium;Fl;114;Egyesített Atomkutató Intézet, Dubna
2001;Livermorium;Lv;116;Egyesített Atomkutató Intézet, Dubna
2004;Nihonium;Nh;113;Egyesített Atomkutató Intézet, Dubna és Lawrence Livermore National Laboratory
2004;Moszkovium;Mc;115;Egyesített Atomkutató Intézet, Dubna és Lawrence Livermore National Laboratory
2006;Oganesszon;Og;118;Egyesített Atomkutató Intézet, Dubna és Lawrence Livermore National Laboratory
2010;Tennesszin;Ts;117;-
1 Év Elem Vegyjel Rendszám Felfedező
2 Ókor Arany Au 79 Ismeretlen
3 Ókor Ezüst Ag 47 Ismeretlen
4 Ókor Réz Cu 29 Ismeretlen
5 Ókor Ón Sn 50 Ismeretlen
6 Ókor Ólom Pb 82 Ismeretlen
7 Ókor Higany Hg 80 Ismeretlen
8 Ókor Vas Fe 26 Ismeretlen
9 Ókor Kén S 16 Ismeretlen
10 Ókor Szén C 6 Ismeretlen
11 1250 Arzén As 33 Albertus Magnus
12 1450 Antimon Sb 51 B. Valentinius (W. Tölde)
13 1520 Cink Zn 30 Paracelsus
14 1669 Foszfor P 15 H. Brand
15 1735 Kobalt Co 27 G. Brandt
16 1740 Bizmut Bi 83 I.H. Pott
17 1741 Platina Pt 78 Ch. Wood
18 1751 Nikkel Ni 28 A. F. Cronstedt
19 1766 Hidrogén H 1 Henry Cavendish
20 1772 Nitrogén N 7 D. Rutherford
21 1774 Oxigén O 8 J. Priestley
22 1774 Klór Cl 17 C. W. Scheele
23 1774 Mangán Mn 25 J. G. Gahn
24 1782 Molibdén Mo 42 P. J. Hjelm
25 1782 Tellúr Te 52 F.J. Müller
26 1783 Volfrám W 74 J. J. és F. d'Elhuyar
27 1789 Urán U 92 M. H. Klaproth (oxid)
28 1790 Stroncium Sr 38 A. Crawford
29 1791 Cirkónium Zr 40 M. H. Klaproth (oxid)
30 1791 Titán Ti 22 W. Gregor (oxid)
31 1794 Ittrium Y 39 J. Gadolin (oxid)
32 1797 Berillium Be 4 L. N. Vaquelin
33 1797 Króm Cr 24 L. N. Vaquelin
34 1801 Nióbium Nb 41 C. Hatchett
35 1802 Tantál Ta 73 A. G. Ekeberg
36 1803 Cérium Ce 58 M. H. Klaproth (oxid)
37 1803 Palládium Pd 46 W. H. Wollaston
38 1803 Ródium Rh 45 W. H. Wollaston
39 1804 Ozmium Os 76 S. Tennant
40 1804 Irídium Ir 77 S. Tennant
41 1807 Kálium K 19 H. Davy
42 1807 Nátrium Na 11 H. Davy
43 1808 Bárium Ba 56 H. Davy
44 1808 Kalcium Ca 20 H. Davy
45 1808 Magnézium Mg 12 H. Davy
46 1808 Bór B 5 J. L. Gay-Lusac és Thénard
47 1811 Jód I 53 B. Curtois
48 1817 Kadmium Cd 48 F.Stromeyer
49 1817 Lítium Li 3 J. A. Arvedson
50 1817 Szelén Se 34 J. J. Berzelius
51 1823 Szilícium Si 14 J. J. Berzelius 1811 Gay-Lusac
52 1825 Alumínium Al 13 H. C. Oersted
53 1826 Bróm Br 35 A. J. Balard
54 1828 Tórium Th 90 J. J. Berzelius
55 1831 Vanádium V 23 N. G. Sefstr0m
56 1839 Lantán La 57 C. G. Mosander
57 1843 Erbium Er 68 C. G. Mosander
58 1843 Terbium Tb 65 C. G. Mosander
59 1844 Ruténium Ru 44 C. Claus
60 1860 Cézium Cs 55 R. W. Bunsen és G. R. Kirchoff
61 1861 Rubídium Rb 37 R. W. Bunsen és G. R. Kirchoff
62 1861 Tallium Tl 81 W. Crookes
63 1863 Indium In 49 F. Reich és T. Richter
64 1868 Hélium He 2 P.J.C.Jansen 1869 J.N.Locker
65 1875 Gallium Ga 31 L. de Boisbaudran
66 1878 Itterbium Yb 70 J. Ch. G. de Marignac
67 1879 Holmium Ho 67 P. T. Cleve
68 1879 Szamárium Sm 62 L. de Boisbaudran
69 1879 Szkandium Sc 21 L. F. Nilson
70 1879 Túlium Tu 69 P. T. Cleve
71 1880 Gadolínium Gd 64 J. Ch. G. de Marignac
72 1885 Neodímium Nd 60 G. Auer von Welsbach
73 1885 Prazeodímium Pr 59 G. Auer von Welsbach
74 1886 Diszprózium Dy 66 L. de Boisbaudran
75 1886 Fluor F 9 H. Moissan
76 1886 Germánium Ge 32 C. Winkler
77 1889 Európium Eu 63 W. Crookes
78 1894 Argon Ar 18 W.Ramsay és J.W.S.Rayleigh
79 1898 Kripton Kr 36 W.Ramsay és M.W.Travers
80 1898 Neon Ne 10 W.Ramsay és M.W.Travers
81 1898 Xenon Xe 54 W.Ramsay és M.W.Travers
82 1898 Polónium Po 84 Pierre és Marie Curie
83 1898 Rádium Ra 88 Pierre és Marie Curie
84 1899 Aktínium Ac 89 A. Debierne
85 1900 Radon Rn 86 F. E. Dorn
86 1907 Lutécium Lu 71 G. Urbain
87 1917 Protaktínium Pa 91 O. Hahn és L. Meitner
88 1923 Hafnium Hf 72 Dirk Coster és Hevesy György
89 1925 Rénium Re 75 W. és Ida Noddack
90 1937 Technécium Tc 43 E. Segre és G. Perrier
91 1939 Francium Fr 87 Margueritte Perey
92 1940 Asztácium At 85 D.R. Corson, McKenzie és E.Segre
93 1940 Neptúnium Np 93 McMillan és O. Abelson
94 1940 Plutónium Pu 94 G.T.Seaborg és McMillan
95 1944 Amerícium Am 95 G.T.Seaborg, R.A.James, A.Ghiorso és L.O.Morgan
96 1944 Kűrium Cm 96 G.T.Seaborg, R.A.James és A.Ghiorso
97 1945 Prométium Pm 61 I.A.Marinski és L.E.Glendenin
98 1949 Berkélium Bk 97 G.T.Seaborg, G.G.Thompson és A.Ghiorso
99 1952 Einsteinium Es 99 A.Ghiorso, G.T.Seaborg, G.G.Thompson, G.H.Higgins, s.m.
100 1953 Fermium Fm 100 A.Ghiorso, G.T.Seaborg, G.G.Thompson, G.H.Higgins és m.
101 1955 Mendelévium Md 101 A.Ghiorso, G.T.Seaborg, B.G.Harvey és m.
102 1958 Nobélium No 102 A.Ghiorso, G.T.Seaborg, T.Sikkeland és m.
103 1961 Laurencium Lr 103 A.Ghiorso, T.Sikkeland, R.E.Larsh és R.T.Latimer
104 1966 Radzerfordium Rf 104 C.N.Flerov ?
105 1967 Dubnium Db 105 Dubna
106 1974 Sziborgium Sg 106 University of California, Berkeley
107 1976 Borium Bh 107 Y. Oganessian, Dubna
108 1982 Meitnerium Mt 109 Peter Armbruster és Gottfried Münzenberg, GSI
109 1984 Hasszium Hs 108 Peter Armbruster és Gottfried Münzenberg
110 1994 Darmstadtium Ds 110 S. Hofmann, V. Ninov és mások, a GSI-től
111 1994 Röntgenium Rg 111 S. Hofmann, V. Ninov és mások, a GSI-től
112 1996 Kopernícium Cn 112 S. Hofmann, V. Ninov és mások, a GSI-től
113 1999 Flerovium Fl 114 Egyesített Atomkutató Intézet, Dubna
114 2001 Livermorium Lv 116 Egyesített Atomkutató Intézet, Dubna
115 2004 Nihonium Nh 113 Egyesített Atomkutató Intézet, Dubna és Lawrence Livermore National Laboratory
116 2004 Moszkovium Mc 115 Egyesített Atomkutató Intézet, Dubna és Lawrence Livermore National Laboratory
117 2006 Oganesszon Og 118 Egyesített Atomkutató Intézet, Dubna és Lawrence Livermore National Laboratory
118 2010 Tennesszin Ts 117 -

61
kemia.py Normal file
View File

@ -0,0 +1,61 @@
from tarolas import ElemFelfedezes
#2. feladat
with open('felfedezesek.csv','r',encoding='utf-8') as f:
fejlec = f.readline()
felfedezesek = [ElemFelfedezes(sor.strip()) for sor in f.readlines()]
print(felfedezesek)
#3.feladat
print('3.Feladat: Elemek száma: ',len(felfedezesek))
#4.feladat
felfedezesek_szama = 0
for i in felfedezesek:
if i.ev == 'Ókor':
felfedezesek_szama += 1
print('4. feladat: Felfedezések száma:', felfedezesek_szama)
while True:
vegyjel = input("5. feladat: kérek egy vegyjelet: ")
if 0 < len(vegyjel) and len(vegyjel) < 3 and vegyjel.isalpha():
break
#6.....
print("6. feladat: Keresés")
kelem = None
for ff in felfedezesek:
if ff.vegyjel.lower() == vegyjel.lower():
kelem = ff
break
if kelem == None:
print(f"\tNincs ilyen elem az adatforrásban!")
else:
print(f"\t Az elem vegyjele: {kelem.vegyjel}")
print(f"\t Az elem neve: {kelem.nev}")
print(f"\t Rendszáma: {kelem.rendszam}")
print(f"\t Felfedezés éve: {kelem.ev}")
print(f"\t Felfedező: {kelem.felfedezo}")
#7.feladat
lhido = 0
for szamlalo in range(felfedezesek_szama, len(felfedezesek)-1):
diffi = int(felfedezesek[szamlalo+1].ev)-int(felfedezesek[szamlalo].ev)
if diffi > lhido:
lhido = diffi
print(f"7. feladat: {lhido} év volt a leghosszabb időszak két elem felfedezése között.")
#8. feladat
evek = {}
nemokori = felfedezesek[felfedezesek_szama:]
for ff in nemokori:
if ff.ev in evek.keys():
evek[ff.ev]+=1
else:
evek[ff.ev]=1
print("8. feladat: Statisztika")
for ek in evek.keys():
if evek[ek] > 3:
print(f"\t {ek}: {evek[ek]} db")

9
tarolas.py Normal file
View File

@ -0,0 +1,9 @@
class ElemFelfedezes:
def __init__(self, sor):
lista = sor.split(';')
self.ev = lista[0]
self.nev = lista[1]
self.vegyjel = lista[2]
self.rendszam = int(lista[3])
self.felfedezo = lista[4]