/* electron configuration for elements in the periodic table */ import java.awt.*; import java.applet.*; public class electron extends Applet { public Image offScreenImage; public Image theBox; public boolean copyRight = false, dragSlider = false; public int xspacing = 10; // this gives the room for one electron public int yspacing = -45; public int xoffset = 50; // this is how far way from the left edge we start public int yoffset = 300; //Give the location of the levels in pixels: public int x1s = xoffset; public int y1s = yoffset; public int x2s = xoffset; public int y2s = yoffset+yspacing; public int x3s = xoffset; public int y3s = yoffset+2*yspacing; public int x4s = xoffset; public int y4s = yoffset+3*yspacing; public int x5s = xoffset; public int y5s = yoffset+4*yspacing; public int x6s = xoffset; public int y6s = yoffset+5*yspacing; public int x7s = xoffset; public int y7s = yoffset+6*yspacing; public int x2p = xoffset + 4*xspacing; public int y2p = yoffset+yspacing; public int x3p = xoffset + 4*xspacing; public int y3p = yoffset+2*yspacing; public int x4p = xoffset + 4*xspacing; public int y4p = yoffset+3*yspacing; public int x5p = xoffset + 4*xspacing; public int y5p = yoffset+4*yspacing; public int x6p = xoffset + 4*xspacing; public int y6p = yoffset+5*yspacing; public int x7p = xoffset + 4*xspacing; public int y7p = yoffset+6*yspacing; public int x3d = xoffset + 12*xspacing; public int y3d = yoffset+2*yspacing; public int x4d = xoffset + 12*xspacing; public int y4d = yoffset+3*yspacing; public int x5d = xoffset + 12*xspacing; public int y5d = yoffset+4*yspacing; public int x6d = xoffset + 12*xspacing; public int y6d = yoffset+5*yspacing; public int x7d = xoffset + 12*xspacing; public int y7d = yoffset+6*yspacing; public int x4f = xoffset + 24*xspacing; public int y4f = yoffset+3*yspacing; public int x5f = xoffset + 24*xspacing; public int y5f = yoffset+4*yspacing; public int x6f = xoffset + 24*xspacing; public int y6f = yoffset+5*yspacing; public int x7f = xoffset + 24*xspacing; public int y7f = yoffset+6*yspacing; public int Z = 1; public String nucName[], longName[]; public void init() { super.init(); offScreenImage = createImage(500,350); //{{INIT_CONTROLS setLayout(null); resize(500,350); //}} nucName = new String[120]; longName = new String[120]; assignNames(); } public void update(Graphics g){ Graphics offg = offScreenImage.getGraphics(); paint(offg); g.drawImage(offScreenImage, 0, 0, this); } public void paint(Graphics g){ g.setColor(Color.white); g.fillRect(0,0,500,350); // slider with Z selector g.setColor(Color.lightGray); g.fill3DRect(150,320,348,28,true); g.setColor(Color.darkGray); g.fill3DRect(153,323,342,22,false); g.setColor(Color.red); g.fillRect(156,326,3*Z,16); // labels g.setColor(Color.lightGray); g.fill3DRect(290,260,208,50,true); g.setColor(Color.red); g.setFont(new Font("Helvetica", Font.BOLD, 18)); g.drawString("Z = "+Z,410,300); g.drawString(""+nucName[Z],300,300); g.drawString(""+longName[Z],300,280); g.drawString("1",15,yoffset+5); g.drawString("2",15,yoffset+yspacing+5); g.drawString("3",15,yoffset+2*yspacing+5); g.drawString("4",15,yoffset+3*yspacing+5); g.drawString("5",15,yoffset+4*yspacing+5); g.drawString("6",15,yoffset+5*yspacing+5); g.drawString("7",15,yoffset+6*yspacing+5); g.drawString("s",x1s+2*xspacing/2,yoffset+40); g.drawString("p",x2p+6*xspacing/2,yoffset+40+yspacing); g.drawString("d",x3d+10*xspacing/2,yoffset+40+2*yspacing); g.drawString("f",x4f+14*xspacing/2,yoffset+40+3*yspacing); //levels g.setColor(Color.gray); g.fillRect(x1s,y1s,(2+1)*xspacing,3); g.fillRect(x2s,y2s,(2+1)*xspacing,3); g.fillRect(x3s,y3s,(2+1)*xspacing,3); g.fillRect(x4s,y4s,(2+1)*xspacing,3); g.fillRect(x5s,y5s,(2+1)*xspacing,3); g.fillRect(x6s,y6s,(2+1)*xspacing,3); g.fillRect(x7s,y7s,(2+1)*xspacing,3); g.fillRect(x2p,y2p,(6+1)*xspacing,3); g.fillRect(x3p,y3p,(6+1)*xspacing,3); g.fillRect(x4p,y4p,(6+1)*xspacing,3); g.fillRect(x5p,y5p,(6+1)*xspacing,3); g.fillRect(x6p,y6p,(6+1)*xspacing,3); g.fillRect(x3d,y3d,(10+1)*xspacing,3); g.fillRect(x4d,y4d,(10+1)*xspacing,3); g.fillRect(x5d,y5d,(10+1)*xspacing,3); g.fillRect(x6d,y6d,(10+1)*xspacing,3); g.fillRect(x4f,y4f,(14+1)*xspacing,3); g.fillRect(x5f,y5f,(14+1)*xspacing,3); int spin = 1; if (Z == 1) drawElectron(x1s+xspacing,y1s,1,g); if (Z >= 2) helium(g); if (Z == 3) drawElectron(x2s+xspacing,y2s,1,g); if (Z >= 4) beryllium(g); if (Z > 4 && Z < 10) { for (int i=1; i<=Z-4; i++) { drawElectron(x2p+i*xspacing,y2p,spin,g); spin = -spin; } } if (Z >= 10) neon(g); if (Z == 11) drawElectron(x3s+xspacing,y3s,1,g); if (Z >= 12) magnesium(g); if (Z > 12 && Z < 18) { for (int i=1; i<=Z-12; i++) { drawElectron(x3p+i*xspacing,y3p,spin,g); spin = -spin; } } if (Z >= 18) argon(g); if (Z == 19 || Z == 24 || Z == 29) drawElectron(x4s+xspacing,y4s,1,g); if (Z >= 20 && Z != 24 && Z != 29) calcium(g); if (Z > 20 && Z < 30) { for (int i=1; i<=Z-20; i++) { drawElectron(x3d+i*xspacing,y3d,spin,g); spin = -spin; } if (Z == 24 || Z == 29) drawElectron(x3d+(Z-19)*xspacing,y3d,spin,g); } if (Z >= 30) zink(g); if (Z > 30 && Z < 36) { for (int i=1; i<=Z-30; i++) { drawElectron(x4p+i*xspacing,y4p,spin,g); spin = -spin; } } if (Z >= 36) krypton(g); if (Z >= 37 && Z != 46 ) drawElectron(x5s+xspacing,y5s,1,g); if (Z == 38 || Z == 39 || Z == 40 || Z > 47) drawElectron(x5s+2*xspacing,y5s,-1,g); if (Z >= 39 && Z <= 45) drawElectron(x4d+xspacing,y4d,1,g); if (Z >= 40 && Z <= 45) drawElectron(x4d+2*xspacing,y4d,-1,g); if (Z >= 41 && Z <= 45) drawElectron(x4d+3*xspacing,y4d,1,g); if (Z >= 41 && Z <= 45) drawElectron(x4d+4*xspacing,y4d,-1,g); if (Z >= 42 && Z <= 45) drawElectron(x4d+5*xspacing,y4d,1,g); if (Z >= 43 && Z <= 45) drawElectron(x4d+6*xspacing,y4d,-1,g); if (Z >= 44 && Z <= 45) drawElectron(x4d+7*xspacing,y4d,1,g); if (Z == 45) drawElectron(x4d+8*xspacing,y4d,-1,g); if (Z >= 46) palladium(g); if (Z > 48 && Z < 54) { for (int i=1; i<=Z-48; i++) { drawElectron(x5p+i*xspacing,y5p,spin,g); spin = -spin; } } if (Z >= 54) xenon(g); // from here on I will simply draw each electron - no more methods for closed shells if (Z > 54) drawElectron(x6s+xspacing,y6s,1,g); // 6s1 if (Z > 55 && Z != 79 && Z != 80) drawElectron(x6s+2*xspacing,y6s,-1,g); // 6s2 if (Z == 57 || Z == 64 || Z > 70) drawElectron(x5d+xspacing,y5d,1,g); // 5d1 if (Z > 57) drawElectron(x4f+xspacing,y4f,1,g); // 4f1 if (Z > 57) drawElectron(x4f+2*xspacing,y4f,-1,g); // 4f2 if (Z > 58) drawElectron(x4f+3*xspacing,y4f,1,g); // 4f3 if (Z > 59) drawElectron(x4f+4*xspacing,y4f,-1,g); // 4f4 if (Z > 60) drawElectron(x4f+5*xspacing,y4f,1,g); // 4f5 if (Z > 61) drawElectron(x4f+6*xspacing,y4f,-1,g); // 4f6 if (Z > 62) drawElectron(x4f+7*xspacing,y4f,1,g); // 4f7 if (Z > 64) drawElectron(x4f+8*xspacing,y4f,-1,g); // 4f8 if (Z > 64) drawElectron(x4f+9*xspacing,y4f,1,g); // 4f9 if (Z > 65) drawElectron(x4f+10*xspacing,y4f,-1,g); // 4f10 if (Z > 66) drawElectron(x4f+11*xspacing,y4f,1,g); // 4f11 if (Z > 67) drawElectron(x4f+12*xspacing,y4f,-1,g); // 4f12 if (Z > 68) drawElectron(x4f+13*xspacing,y4f,1,g); // 4f13 if (Z > 69) drawElectron(x4f+14*xspacing,y4f,-1,g); // 4f14 if (Z > 71) drawElectron(x5d+2*xspacing,y5d,-1,g); // 5d2 if (Z > 72) drawElectron(x5d+3*xspacing,y5d,1,g); // 5d3 if (Z > 73) drawElectron(x5d+4*xspacing,y5d,-1,g); // 5d4 if (Z > 74) drawElectron(x5d+5*xspacing,y5d,1,g); // 5d5 if (Z > 75) drawElectron(x5d+6*xspacing,y5d,-1,g); // 5d6 if (Z > 76) drawElectron(x5d+7*xspacing,y5d,1,g); // 5d7 if (Z > 77) drawElectron(x5d+8*xspacing,y5d,-1,g); // 5d8 if (Z > 77) drawElectron(x5d+9*xspacing,y5d,1,g); // 5d9 if (Z > 78) drawElectron(x5d+10*xspacing,y5d,-1,g); // 5d10 if (Z > 80) drawElectron(x6p+xspacing,y6p,1,g); // 6p1 if (Z > 81) drawElectron(x6p+2*xspacing,y6p,-1,g); // 6p2 if (Z > 82) drawElectron(x6p+3*xspacing,y6p,1,g); // 6p3 if (Z > 83) drawElectron(x6p+4*xspacing,y6p,-1,g); // 6p4 if (Z > 84) drawElectron(x6p+5*xspacing,y6p,1,g); // 6p5 if (Z > 85) drawElectron(x6p+6*xspacing,y6p,-1,g); // 6p6 if (Z > 86) drawElectron(x7s+xspacing,y7s,1,g); // 7s1 if (Z > 87 && Z != 110 && Z != 111) drawElectron(x7s+2*xspacing,y7s,-1,g); // 7s2 if ((Z>=89 && Z<=93) || Z==96 || Z>102) drawElectron(x6d+xspacing,y6d,1,g); // 6d1 if (Z == 90 || Z > 103) drawElectron(x6d+2*xspacing,y6d,-1,g); // 6d2 if (Z > 104) drawElectron(x6d+3*xspacing,y6d,1,g); // 6d3 if (Z > 105) drawElectron(x6d+4*xspacing,y6d,-1,g); // 6d4 if (Z > 106) drawElectron(x6d+5*xspacing,y6d,1,g); // 6d5 if (Z > 107) drawElectron(x6d+6*xspacing,y6d,-1,g); // 6d6 if (Z > 108) drawElectron(x6d+7*xspacing,y6d,1,g); // 6d7 if (Z > 109) drawElectron(x6d+8*xspacing,y6d,-1,g); // 6d8 if (Z > 109) drawElectron(x6d+9*xspacing,y6d,1,g); // 6d9 if (Z > 110) drawElectron(x6d+10*xspacing,y6d,-1,g); // 6d10 if (Z > 90) drawElectron(x5f+xspacing,y5f,1,g); // 5f1 if (Z > 90) drawElectron(x5f+2*xspacing,y5f,-1,g); // 5f2 if (Z > 91) drawElectron(x5f+3*xspacing,y5f,1,g); // 5f3 if (Z > 92) drawElectron(x5f+4*xspacing,y5f,-1,g); // 5f4 if (Z > 93) drawElectron(x5f+5*xspacing,y5f,1,g); // 5f5 if (Z > 93) drawElectron(x5f+6*xspacing,y5f,-1,g); // 5f6 if (Z > 94) drawElectron(x5f+7*xspacing,y5f,1,g); // 5f7 if (Z > 96) drawElectron(x5f+8*xspacing,y5f,-1,g); // 5f8 if (Z > 96) drawElectron(x5f+9*xspacing,y5f,1,g); // 5f9 if (Z > 97) drawElectron(x5f+10*xspacing,y5f,-1,g); // 5f10 if (Z > 98) drawElectron(x5f+11*xspacing,y5f,1,g); // 5f11 if (Z > 99) drawElectron(x5f+12*xspacing,y5f,-1,g); // 5f12 if (Z > 100) drawElectron(x5f+13*xspacing,y5f,1,g); // 5f13 if (Z > 101) drawElectron(x5f+14*xspacing,y5f,-1,g); // 5f14 // copyright notice: if (copyRight) { g.setColor(Color.green); g.fillRect(100,100,240,70); g.setColor(Color.white); g.setFont(new Font("Helvetica", Font.PLAIN, 18)); g.drawString("This applet was written by:",110,120); g.drawString("Wolfgang Bauer",110,140); g.drawString("Copyright: WB 1999",110,160); } } public void helium(Graphics g) { drawElectron(x1s+xspacing,y1s,1,g); drawElectron(x1s+2*xspacing,y1s,-1,g); } public void beryllium(Graphics g) { drawElectron(x2s+xspacing,y2s,1,g); drawElectron(x2s+2*xspacing,y2s,-1,g); } public void neon(Graphics g){ int spin = 1; for (int i=1; i<=6; i++) { drawElectron(x2p+i*xspacing,y2p,spin,g); spin = -spin; } } public void magnesium(Graphics g) { drawElectron(x3s+xspacing,y3s,1,g); drawElectron(x3s+2*xspacing,y3s,-1,g); } public void argon(Graphics g){ int spin = 1; for (int i=1; i<=6; i++) { drawElectron(x3p+i*xspacing,y3p,spin,g); spin = -spin; } } public void calcium(Graphics g) { drawElectron(x4s+xspacing,y4s,1,g); drawElectron(x4s+2*xspacing,y4s,-1,g); } public void zink(Graphics g){ int spin = 1; for (int i=1; i<=10; i++) { drawElectron(x3d+i*xspacing,y3d,spin,g); spin = -spin; } } public void krypton(Graphics g){ int spin = 1; for (int i=1; i<=6; i++) { drawElectron(x4p+i*xspacing,y4p,spin,g); spin = -spin; } } public void palladium(Graphics g){ int spin = 1; for (int i=1; i<=10; i++) { drawElectron(x4d+i*xspacing,y4d,spin,g); spin = -spin; } } public void xenon(Graphics g){ int spin = 1; for (int i=1; i<=6; i++) { drawElectron(x5p+i*xspacing,y5p,spin,g); spin = -spin; } } public void drawElectron(int x, int y, int spin, Graphics g){ g.setColor(Color.red); g.fillOval(x-4,y-4,10,10); g.setColor(Color.green); if (spin < 0) { drawArrow(g, x, y-10, x, y+10); } else { drawArrow(g, x, y+10, x, y-10); } } public void drawArrow(Graphics g, int tailX, int tailY, int headX, int headY) { double theta = Math.atan( (double)(tailY-headY)/(tailX-headX) ); if((tailX-headX)>=0) theta+= Math.PI; int w1=6/3, w2=10/3, w3=15/3; double s = Math.sin(theta); double c = Math.cos(theta); int sw1 = (int)(s*w1); int sw2 = (int)(s*w2); int sw3 = (int)(s*w3); int cw1 = (int)(c*w1); int cw2 = (int)(c*w2); int cw3 = (int)(c*w3); int[] exes = {tailX-sw1, headX-cw3-sw1, headX-cw3-sw2, headX, headX-cw3+sw2, headX-cw3+sw1, tailX+sw1, tailX-sw1}; int[] whys = {tailY+cw1, headY-sw3+cw1, headY-sw3+cw2, headY, headY-sw3-cw2, headY-sw3-cw1, tailY-cw1, tailY+cw1}; Polygon arrow = new Polygon(exes, whys, 8); g.fillPolygon(arrow); g.setColor(Color.black); g.drawPolygon(arrow); } public boolean handleEvent(Event event) { if (event.id == Event.KEY_PRESS){ String thePressedKey = ""+(char)event.key; if (thePressedKey.equalsIgnoreCase("w")) { copyRight = !copyRight; repaint(); } } if (event.key == Event.DOWN){ if (Z > 1) Z--; repaint(); } if (event.key == Event.UP){ if (Z < 112) Z++; repaint(); } if (event.target == this && event.id == Event.MOUSE_DOWN) { electron_MouseDown(event); return true; } if (event.target == this && event.id == Event.MOUSE_DRAG) { electron_MouseDrag(event); return true; } if (event.target == this && event.id == Event.MOUSE_UP) { electron_MouseUp(event); return true; } return super.handleEvent(event); } //{{DECLARE_CONTROLS //}} public Image getImageClip(Image bigImage, int x, int y, int w, int h){ Image image = createImage(w, h); Graphics g = image.getGraphics(); g.clipRect(0, 0, w, h); g.drawImage(bigImage, -x, -y, null); return image; } void electron_MouseDown(Event event) { int xx = event.x; int yy = event.y; if (xx > 156 && xx < 492 && yy > 325 && yy < 343) { Z = (int)( (xx-156) / 3 ); if (Z < 1) Z = 1; if (Z > 112) Z = 112; dragSlider = true; } repaint(); } void electron_MouseDrag(Event event) { int xx = event.x; int yy = event.y; if (dragSlider) { Z = (int)( (xx-156) / 3 ); if (Z < 1) Z = 1; if (Z > 112) Z = 112; } repaint(); } void electron_MouseUp(Event event) { if (dragSlider) { int xx = event.x; int yy = event.y; dragSlider = false; Z = (int)( (xx-156) / 3 ); if (Z < 1) Z = 1; if (Z > 112) Z = 112; repaint(); } } public void assignNames(){ nucName[0] = "n"; longName[0] = "Neutron"; nucName[1] = "H"; longName[1] = "Hydrogen"; nucName[2] = "He"; longName[2] = "Helium"; nucName[3] = "Li"; longName[3] = "Lithium"; nucName[4] = "Be"; longName[4] = "Beryllium"; nucName[5] = "B"; longName[5] = "Boron"; nucName[6] = "C"; longName[6] = "Carbon"; nucName[7] = "N"; longName[7] = "Nitrogen"; nucName[8] = "O"; longName[8] = "Oxygen"; nucName[9] = "F"; longName[9] = "Fluorine"; nucName[10] = "Ne"; longName[10] = "Neon"; nucName[11] = "Na"; longName[11] = "Sodium"; nucName[12] = "Mg"; longName[12] = "Magnesium"; nucName[13] = "Al"; longName[13] = "Aluminium"; nucName[14] = "Si"; longName[14] = "Silicon"; nucName[15] = "P"; longName[15] = "Phosphorus"; nucName[16] = "S"; longName[16] = "Sulfur"; nucName[17] = "Cl"; longName[17] = "Chlorine"; nucName[18] = "Ar"; longName[18] = "Argon"; nucName[19] = "K"; longName[19] = "Potassium"; nucName[20] = "Ca"; longName[20] = "Calcium"; nucName[21] = "Sc"; longName[21] = "Scandium"; nucName[22] = "Ti"; longName[22] = "Titanium"; nucName[23] = "V"; longName[23] = "Vanadium"; nucName[24] = "Cr"; longName[24] = "Chromium"; nucName[25] = "Mn"; longName[25] = "Manganese"; nucName[26] = "Fe"; longName[26] = "Iron"; nucName[27] = "Co"; longName[27] = "Cobalt"; nucName[28] = "Ni"; longName[28] = "Nickel"; nucName[29] = "Cu"; longName[29] = "Copper"; nucName[30] = "Zn"; longName[30] = "Zinc"; nucName[31] = "Ga"; longName[31] = "Gallium"; nucName[32] = "Ge"; longName[32] = "Germanium"; nucName[33] = "As"; longName[33] = "Arsenic"; nucName[34] = "Se"; longName[34] = "Selenium"; nucName[35] = "Br"; longName[35] = "Bromine"; nucName[36] = "Kr"; longName[36] = "Krypton"; nucName[37] = "Rb"; longName[37] = "Rubidium"; nucName[38] = "Sr"; longName[38] = "Strontium"; nucName[39] = "Y"; longName[39] = "Yttrium"; nucName[40] = "Zr"; longName[40] = "Zirconium"; nucName[41] = "Nb"; longName[41] = "Niobium"; nucName[42] = "Mo"; longName[42] = "Molybdenum"; nucName[43] = "Tc"; longName[43] = "Technetium"; nucName[44] = "Ru"; longName[44] = "Ruthenium"; nucName[45] = "Rh"; longName[45] = "Rhodium"; nucName[46] = "Pd"; longName[46] = "Palladium"; nucName[47] = "Ag"; longName[47] = "Silver"; nucName[48] = "Cd"; longName[48] = "Cadmium"; nucName[49] = "In"; longName[49] = "Indium"; nucName[50] = "Sn"; longName[50] = "Tin"; nucName[51] = "Sb"; longName[51] = "Antimony"; nucName[52] = "Te"; longName[52] = "Tellurium"; nucName[53] = "I"; longName[53] = "Iodine"; nucName[54] = "Xe"; longName[54] = "Xenon"; nucName[55] = "Cs"; longName[55] = "Cesium"; nucName[56] = "Ba"; longName[56] = "Barium"; nucName[57] = "La"; longName[57] = "Lanthanum"; nucName[58] = "Ce"; longName[58] = "Cerium"; nucName[59] = "Pr"; longName[59] = "Praseodymium"; nucName[60] = "Nd"; longName[60] = "Neodymium"; nucName[61] = "Pm"; longName[61] = "Promethium"; nucName[62] = "Sm"; longName[62] = "Samarium"; nucName[63] = "Eu"; longName[63] = "Europium"; nucName[64] = "Gd"; longName[64] = "Gadolinium"; nucName[65] = "Tb"; longName[65] = "Terbium"; nucName[66] = "Dy"; longName[66] = "Dysprosium"; nucName[67] = "Ho"; longName[67] = "Holmium"; nucName[68] = "Er"; longName[68] = "Erbium"; nucName[69] = "Tm"; longName[69] = "Thulium"; nucName[70] = "Yb"; longName[70] = "Ytterbium"; nucName[71] = "Lu"; longName[71] = "Lutetium"; nucName[72] = "Hf"; longName[72] = "Hafnium"; nucName[73] = "Ta"; longName[73] = "Tantalum"; nucName[74] = "W"; longName[74] = "Tungsten"; nucName[75] = "Re"; longName[75] = "Rhenium"; nucName[76] = "Os"; longName[76] = "Osmium"; nucName[77] = "Ir"; longName[77] = "Iridium"; nucName[78] = "Pt"; longName[78] = "Platinum"; nucName[79] = "Au"; longName[79] = "Gold"; nucName[80] = "Hg"; longName[80] = "Mercury"; nucName[81] = "Tl"; longName[81] = "Thallium"; nucName[82] = "Pb"; longName[82] = "Lead"; nucName[83] = "Bi"; longName[83] = "Bismuth"; nucName[84] = "Po"; longName[84] = "Polonium"; nucName[85] = "At"; longName[85] = "Astatine"; nucName[86] = "Rn"; longName[86] = "Radon"; nucName[87] = "Fr"; longName[87] = "Francium"; nucName[88] = "Ra"; longName[88] = "Radium"; nucName[89] = "Ac"; longName[89] = "Actinium"; nucName[90] = "Th"; longName[90] = "Thorium"; nucName[91] = "Pa"; longName[91] = "Protactinium"; nucName[92] = "U"; longName[92] = "Uranium"; nucName[93] = "Np"; longName[93] = "Neptunium"; nucName[94] = "Pu"; longName[94] = "Plutonium"; nucName[95] = "Am"; longName[95] = "Americium"; nucName[96] = "Cm"; longName[96] = "Curium"; nucName[97] = "Bk"; longName[97] = "Berkelium"; nucName[98] = "Cf"; longName[98] = "Californium"; nucName[99] = "Es"; longName[99] = "Einsteinium"; nucName[100] = "Fm"; longName[100] = "Fermium"; nucName[101] = "Md"; longName[101] = "Mendelevium"; nucName[102] = "No"; longName[102] = "Nobelium"; nucName[103] = "Lr"; longName[103] = "Lawrencium"; nucName[104] = "Rf"; longName[104] = "Rutherfordium"; nucName[105] = "Db"; longName[105] = "Dubnium"; nucName[106] = "Sb"; longName[106] = "Seaborgium"; nucName[107] = "Bh"; longName[107] = "Bohrium"; nucName[108] = "Hs"; longName[108] = "Hassium"; nucName[109] = "Mt"; longName[109] = "Meitnerium"; nucName[110] = "Xa"; longName[110] = "Element 110"; nucName[111] = "Xb"; longName[111] = "Element 111"; nucName[112] = "Xc"; longName[112] = "Element 112"; } }