Converting to Mac
BlitzMax Forums/BlitzMax Beginners Area/Converting to Mac
| ||
I have a few programs that work perfectly on a windows pc. Is there any little snippet of code I could copy into my program to make it mac-compatable? |
| ||
If you're not using anything Windows-specific, you don't need to do anything to make a program Mac-compatible. If you are using something Mac-specific, you'd have to replace that code with code which does the same thing on the Mac. There is no magic code to automatically do it for you though. |
| ||
So if I have some windows blitz programs that only deal with text, these will work on mac with no formatting? I also have a game with some images/enemies/such. Im assuming this will also work with a mac. |
| ||
Probably :-) |
| ||
In general everything should 'just work' , but there are a few catches: If your Mac version is on PPC, then you may run into issues with 'endianness' when you're reading/writing files to disk, due to the way that the Mac stores them in memory is different from the way PC's does. You may need to force a specific endianness when porting over programs between the two platforms. |
| ||
Zacho, if you want somebody to try compiling your code on an (Intel) Mac, I'd be happy do it. |
| ||
Um Lindsay, thanks for the offer, but if my friend (who has a mac) has no trouble loading the programs, then i'll have to say no. But if it doesnt work id be happy to give it to ya. :) |
| ||
Well question is if your friend owns BlitzMax. Because otherwise he won't be of any help to you as you can not create programs without owning BM |
| ||
No, you got it wrong. I am giving my friend a COPY of the game. I am wondering if it will run, not create new games... |
| ||
but you have a mac wright? or that won't happen. Because in order to create a mac executable, the executable has to be made in a mac. |
| ||
no i don't have a mac....Ok lindsay. You win. Lol. I will give you the source code, but later ok? |
| ||
Ok lindsay. You win. I guess you meant "thank you for the kind offer of your time, Lindsay" rather than "ok, you win". |
| ||
One issue I have found when doing cross-platform stuff is the endianness of different cpu's. I just spent a couple of days trying to figure out a seeming bug in my little game and this is what it came down to. Different CPU's (which for most people means either IntelX86 or PowerPC) store bytes in different orders when you read and write them in memory. It's perfectly okay if you use Byte Ptr and only write single bytes, because then you are writing to exactly specific to-the-byte addresses. This causes no endian problems. But if you are wanting to write, e.g. a Short, Int, Float, Long or Double, the different CPU's store the bytes in different orders. So like PowerPC is big-endian I think, so if you try to store an RGBA pixel it actually stores it in the order R-G-B-A. But on the little-endian systems like Intel, and if you're writing RGBA as an integer not separate bytes, it'll store it as A-B-G-R. I found this became a problem when I tried to write RGBA color values into a pixmap by writing one Integer at a time (containing all four components), and then trying to do a DrawPixmap call. I couldn't figure out why the heck my pixmap kept looking all red tinted. It turned out that the alpha values were ending up in the red component, as part of the problem. So what it came down to is that when I wrote an RGBA integer to memory, it gets written as ABGR on an Intel-cpu machine and subsequently is uploaded as if it's an RGBA pixmap but with ABGR pixel values. This btw does not happen on a PowerPC iMac because the endianness doesn't get swapped around - RGBA gets stored as RGBA. It took a while for me to understand this, but the cpu can change the byte order *on the fly* after you've issued a write instruction, and before the data is written. e.g. MyIntPtr[0]=$886644FF gets changed to writing $FF446688. So I'm glad to have figured that out. You can use the compiler directives: ?BigEndian ?LittleEndian to write code which writes data in the correct byte order based on what the cpu does to it, or just write individual bytes (which is not very optimized - writing whole integers is better). |
| ||
I guess you meant "thank you for the kind offer of your time, Lindsay" rather than "ok, you win". Ya, that's what I meant. Sorry bout' typing that, I was in a hurry. First one's a MLA formatter. Second one is a periodic table search engine. [codebox] AppTitle="Periodic-Table Search Engine by Me" 'Code @ which the extra-code was found: http://www.blitzmax.com/codearcs/codearcs.php?code=1941 'Element info @: http://www.chemicool.com/elements/ 'SetBuffer BackBuffer() SeedRnd MilliSecs() 'Type Info Global element$ Global KEY_A= 65 Global KEY_B= 66 Global KEY_C= 67 Global KEY_D= 68 Global KEY_E= 69 Global KEY_F= 70 Global KEY_G= 71 Global KEY_H= 72 Global KEY_I= 73 Global KEY_J= 74 Global KEY_K= 75 Global KEY_L= 76 Global KEY_M= 77 Global KEY_N= 78 Global KEY_O= 79 Global KEY_P= 80 Global KEY_Q= 81 Global KEY_R= 82 Global KEY_S= 83 Global KEY_T= 84 Global KEY_U= 85 Global KEY_V= 86 Global KEY_W= 87 Global KEY_X= 88 Global KEY_Y= 89 Global KEY_Z= 90 Rem Const IAS_Normal = $AAAAAAAA 'we're sweet Const IAS_Return = $BBBBBBBB 'carrage return hit EndRem CreateDir("F:\Periodic-Table.dir",True) 'While Not KeyHit(27) Repeat '#here Print "This is the Periodic-Table Search Engine by Me" Delay 2000 Print "This may not be reproduced, distributed, or sold without consent and permission from Me" Delay 2000 Print "Type in the element. Ex --> helium " Delay 500 Print "OR type in the element abbreviation. Ex --> Au" Delay 500 Print "OR type in the number of the element. Ex --> 45" Delay 500 Print "Remember to type in ALL LOWERCASE! [Except for element abbrev]" Delay 700 Print "" FlushKeys element$=Input("What element do you want info for? ") '***************************************************** '----------------------------------------------------- 'D A T A 'D A T A ---- ELEMENT ABBREVIATIONS 'D A T A '----------------------------------------------------- '***************************************************** If element$ = "H" Goto hereH EndIf If element$ = "Li" Goto hereLi EndIf If element$ = "Na" Goto hereNa EndIf If element$ = "K" Goto hereK EndIf If element$ = "Rb" Goto hereRb EndIf If element$ = "Cs" Goto hereCs EndIf If element$ = "Fr" Goto hereFr EndIf If element$ = "Be" Goto hereBe EndIf If element$ = "Mg" Goto hereMg EndIf If element$ = "Ca" Goto hereCa EndIf If element$ = "Sr" Goto hereSr EndIf If element$ = "Ba" Goto hereBa EndIf If element$ = "Ra" Goto hereRa EndIf If element$ = "Sc" Goto hereSc EndIf If element$ = "Y" Goto hereY EndIf If element$ = "La" Goto hereLa EndIf If element$ = "Ac" Goto hereAc EndIf If element$ = "Ti" Goto hereTi EndIf If element$ = "Zr" Goto hereZr EndIf If element$ = "Hf" Goto hereHf EndIf If element$ = "Rf" Goto hereRf EndIf If element$ = "V" Goto hereV EndIf If element$ = "Nb" Goto hereNb EndIf If element$ = "Ta" Goto hereTa EndIf If element$ = "Db" Goto hereDb EndIf If element$ = "Cr" Goto hereCr EndIf If element$ = "Mo" Goto hereMo EndIf If element$ = "W" Goto hereW EndIf If element$ = "Sg" Goto hereSg EndIf If element$ = "Mn" Goto hereMn EndIf If element$ = "Tc" Goto hereTc EndIf If element$ = "Re" Goto hereRe EndIf If element$ = "Bh" Goto hereBh EndIf If element$ = "Fe" Goto hereFe EndIf If element$ = "Ru" Goto hereRu EndIf If element$ = "Os" Goto hereOs EndIf If element$ = "Hs" Goto hereHs EndIf If element$ = "Co" Goto hereCo EndIf If element$ = "Rh" Goto hereRh EndIf If element$ = "Ir" Goto hereIr EndIf If element$ = "Mt" Goto hereMt EndIf If element$ = "Ni" Goto hereNi EndIf If element$ = "Pd" Goto herePd EndIf If element$ = "Pt" Goto herePt EndIf If element$ = "Ds" Goto hereDs EndIf If element$ = "Cu" Goto hereCu EndIf If element$ = "Ag" Goto hereAg EndIf If element$ = "Au" Goto hereAu EndIf If element$ = "Rg" Goto hereRg EndIf If element$ = "Zn" Goto hereZn EndIf If element$ = "Cd" Goto hereCd EndIf If element$ = "Hg" Goto hereHg EndIf If element$ = "B" Goto hereB EndIf If element$ = "Al" Goto hereAl EndIf If element$ = "Ga" Goto hereGa EndIf If element$ = "In" Goto hereIn EndIf If element$ = "Tl" Goto hereTl EndIf If element$ = "C" Goto hereC EndIf If element$ = "Si" Goto hereSi EndIf If element$ = "Ge" Goto hereGe EndIf If element$ = "Sn" Goto hereSn EndIf If element$ = "Pb" Goto herePb EndIf If element$ = "N" Goto hereN EndIf If element$ = "P" Goto hereP EndIf If element$ = "As" Goto hereAs EndIf If element$ = "Sb" Goto hereSb EndIf If element$ = "Bi" Goto hereBi EndIf If element$ = "O" Goto hereO EndIf If element$ = "S" Goto hereS EndIf If element$ = "Se" Goto hereSe EndIf If element$ = "Te" Goto hereTe EndIf If element$ = "Po" Goto herePo EndIf If element$ = "F" Goto hereF EndIf If element$ = "Cl" Goto hereCl EndIf If element$ = "Br" Goto hereBr EndIf If element$ = "I" Goto hereI EndIf If element$ = "At" Goto hereAt EndIf If element$ = "He" Goto hereHe EndIf If element$ = "Ne" Goto hereNe EndIf If element$ = "Ar" Goto hereAr EndIf If element$ = "Kr" Goto hereKr EndIf If element$ = "Xe" Goto hereXe EndIf If element$ = "Rn" Goto hereRn EndIf If element$ = "Ce" Goto hereCe EndIf If element$ = "Th" Goto hereTh EndIf If element$ = "Pr" Goto herePr EndIf If element$ = "Pa" Goto herePa EndIf If element$ = "Nd" Goto hereNd EndIf If element$ = "U" Goto hereU EndIf If element$ = "Pm" Goto herePm EndIf If element$ = "Np" Goto hereNp EndIf If element$ = "Sm" Goto hereSm EndIf If element$ = "Pu" Goto herePu EndIf If element$ = "Eu" Goto hereEu EndIf If element$ = "Am" Goto hereAm EndIf If element$ = "Gd" Goto hereGd EndIf If element$ = "Cm" Goto hereCm EndIf If element$ = "Tb" Goto hereTb EndIf If element$ = "Bk" Goto hereBk EndIf If element$ = "Dy" Goto hereDy EndIf If element$ = "Cf" Goto hereCf EndIf If element$ = "Ho" Goto hereHo EndIf If element$ = "Es" Goto hereEs EndIf If element$ = "Er" Goto hereEr EndIf If element$ = "Fm" Goto hereFm EndIf If element$ = "Tm" Goto hereTm EndIf If element$ = "Md" Goto hereMd EndIf If element$ = "Yb" Goto hereYb EndIf If element$ = "No" Goto hereNo EndIf If element$ = "Lu" Goto hereLu EndIf If element$ = "Lr" Goto hereLr EndIf '***************************************************** '----------------------------------------------------- 'D A T A 'D A T A ---- NUMBER OF ELEMENT 'D A T A '----------------------------------------------------- '***************************************************** If element$ = "1" Goto hereH EndIf If element$ = "2" Goto hereHe EndIf If element$ = "3" Goto hereLi EndIf If element$ = "4" Goto hereBe EndIf If element$ = "5" Goto hereB EndIf If element$ = "6" Goto hereC EndIf If element$ = "7" Goto hereN EndIf If element$ = "8" Goto hereO EndIf If element$ = "9" Goto hereF EndIf If element$ = "10" Goto hereNe EndIf If element$ = "11" Goto hereNa EndIf If element$ = "12" Goto hereMg EndIf If element$ = "13" Goto hereAl EndIf If element$ = "14" Goto hereSi EndIf If element$ = "15" Goto hereP EndIf If element$ = "16" Goto hereS EndIf If element$ = "17" Goto hereCl EndIf If element$ = "18" Goto hereAr EndIf If element$ = "19" Goto hereK EndIf If element$ = "20" Goto hereCa EndIf If element$ = "21" Goto hereSc EndIf If element$ = "22" Goto hereTi EndIf If element$ = "23" Goto hereV EndIf If element$ = "24" Goto hereCr EndIf If element$ = "25" Goto hereMn EndIf If element$ = "26" Goto hereFe EndIf If element$ = "27" Goto hereCo EndIf If element$ = "28" Goto hereNi EndIf If element$ = "29" Goto hereCu EndIf If element$ = "30" Goto hereZn EndIf If element$ = "31" Goto hereGa EndIf If element$ = "32" Goto hereGe EndIf If element$ = "33" Goto hereAs EndIf If element$ = "34" Goto hereSe EndIf If element$ = "35" Goto hereBr EndIf If element$ = "36" Goto hereKr EndIf If element$ = "37" Goto hereRb EndIf If element$ = "38" Goto hereSr EndIf If element$ = "39" Goto hereY EndIf If element$ = "40" Goto hereZr EndIf If element$ = "41" Goto hereNb EndIf If element$ = "42" Goto hereMo EndIf If element$ = "43" Goto hereTc EndIf If element$ = "44" Goto hereRu EndIf If element$ = "45" Goto hereRh EndIf If element$ = "46" Goto herePd EndIf If element$ = "47" Goto hereAg EndIf If element$ = "48" Goto hereCd EndIf If element$ = "49" Goto hereIn EndIf If element$ = "50" Goto hereSn EndIf If element$ = "51" Goto hereSb EndIf If element$ = "52" Goto hereTe EndIf If element$ = "53" Goto hereI EndIf If element$ = "54" Goto hereXe EndIf If element$ = "55" Goto hereCs EndIf If element$ = "56" Goto hereBa EndIf If element$ = "57" Goto hereLa EndIf If element$ = "58" Goto hereCe EndIf If element$ = "59" Goto herePr EndIf If element$ = "60" Goto hereNd EndIf If element$ = "61" Goto herePm EndIf If element$ = "62" Goto hereSm EndIf If element$ = "63" Goto hereEu EndIf If element$ = "64" Goto hereGd EndIf If element$ = "65" Goto hereTb EndIf If element$ = "66" Goto hereDy EndIf If element$ = "67" Goto hereHo EndIf If element$ = "68" Goto hereEr EndIf If element$ = "69" Goto hereTm EndIf If element$ = "70" Goto hereYb EndIf If element$ = "71" Goto hereLu EndIf If element$ = "72" Goto hereHf EndIf If element$ = "73" Goto hereTa EndIf If element$ = "74" Goto hereW EndIf If element$ = "75" Goto hereRe EndIf If element$ = "76" Goto hereOs EndIf If element$ = "77" Goto hereIr EndIf If element$ = "78" Goto herePt EndIf If element$ = "79" Goto hereAu EndIf If element$ = "80" Goto hereHg EndIf If element$ = "81" Goto hereTl EndIf If element$ = "82" Goto herePb EndIf If element$ = "83" Goto hereBi EndIf If element$ = "84" Goto herePo EndIf If element$ = "85" Goto hereAt EndIf If element$ = "86" Goto hereRn EndIf If element$ = "87" Goto hereFr EndIf If element$ = "88" Goto hereRa EndIf If element$ = "89" Goto hereAc EndIf If element$ = "90" Goto hereTh EndIf If element$ = "91" Goto herePa EndIf If element$ = "92" Goto hereU EndIf If element$ = "93" Goto hereNp EndIf If element$ = "94" Goto herePu EndIf If element$ = "95" Goto hereAm EndIf If element$ = "96" Goto hereCm EndIf If element$ = "97" Goto hereBk EndIf If element$ = "98" Goto hereCf EndIf If element$ = "99" Goto hereEs EndIf If element$ = "100" Goto hereFm EndIf If element$ = "101" Goto hereMd EndIf If element$ = "102" Goto hereNo EndIf If element$ = "103" Goto hereLr EndIf If element$ = "104" Goto hereRf EndIf If element$ = "105" Goto hereDb EndIf If element$ = "106" Goto hereSg EndIf If element$ = "107" Goto hereBh EndIf If element$ = "108" Goto hereHs EndIf If element$ = "109" Goto hereMt EndIf If element$ = "110" Goto hereDs EndIf If element$ = "111" Goto hereRg EndIf '**************************************************** '---------------------------------------------------- 'D A T A 'D A T A ---- ELEMENTS 'D A T A '---------------------------------------------------- '**************************************************** If element$ = "hydrogen" 'Or "Hydrogen" Or "HYDROGEN" #hereH Print "" Print "Hydrogen is the 1st element" Print "Hydrogen's symbol is H" Print "The average atomic mass = 1.00794g" Print "The electron configuration is : 1s^1" Print "Type of element: Non-metal" Print "Number of isotopes: 3" EndIf '************** 'L E T T E R: A '************** If element$ = "actinium" 'Or "Actinium" Or "ACTINIUM" #hereAc Print "" Print "Actinium is the 89th element" Print "Actinium's symbol is Ac" '**Symbol** Print "The average atomic mass = 227g" '**Ave. Atomic Mass** Print "The electron configuration is : [Rn] 6d^1 7s^2 " '**Electron configuration** Print "Type of element: Transition Metal" Print "Number of isotopes: 2" EndIf If element$ = "aluminum" 'Or "Aluminum" Or "ALUMINUM" #hereAl Print "" Print "Aluminum is the 13th element" Print "Aluminum's symbol is Al" Print "The average atomic mass = 26.981g" Print "The electron configuration is : [Ne] 3s^2 3p^1" Print "Type of element: Metal" Print "Number of isotopes: 1" EndIf If element$ = "americium" 'Or "Americium" Or "AMERICIUM" #hereAm Print "" Print "Americium is the 95th element" Print "Americium's symbol is Am" Print "The average atomic mass = 243g" Print "The electron configuration is : [Rn] 5f^7 7s^2" Print "Type of element: Metal [Rare-Earth]" Print "Number of isotopes: 0" EndIf If element$ = "antimony" 'Or "Antimony" Or "ANTIMONY" #hereSb Print "" Print "Antimony is the 51 element" Print "Antimony's symbol is Sb" Print "The average atomic mass = 121.75g" Print "The electron configuration is : [Kr] 4d^10 5s^2 5p^3" Print "Type of element: Metal" Print "Number of isotopes: 2" EndIf If element$ = "argon" 'Or "Argon" Or "ARGON" #hereAr Print "" Print "Argon is the 18th element" Print "Argon's symbol is Ar" Print "The average atomic mass = 39.948g" Print "The electron configuration is : [Ne] 3s^2 3p^6" Print "Type of element: Noble Gas" Print "Number of isotopes: 3" EndIf If element$ = "arsenic" 'Or "Arsenic" Or "ARSENIC" #hereAs Print "" Print "Arsenic is the 33rd element" Print "Arsenic's symbol is As" Print "The average atomic mass = 74.9216g" Print "The electron configuration is : [Ar] 3d^10 4s^2 4p^3" Print "Type of element: Non-metal" Print "Number of isotopes: 1" EndIf If element$ = "astatine" 'Or "Astatine" Or "ASTATINE" #hereAt Print "" Print "Astatine is the 85th element" Print "Astatine's symbol is At" Print "The average atomic mass = 210g" Print "The electron configuration is : [Xe] 4f^14 5d^10 6s^2 6p^5" Print "Type of element: Halogen" Print "Number of isotopes: 0" EndIf '************** 'L E T T E R: B '************** If element$ = "barium" 'Or "Barium" Or "BARIUM" #hereBa Print "" Print "Barium is the 56th element" Print "Barium's symbol is Ba" Print "The average atomic mass = 137.33g" Print "The electron configuration is : [Xe] 6s^2" Print "Type of element: Alkali Earth" Print "Number of isotopes: 7" EndIf If element$ = "berkelium" 'Or "Berkelium" Or "BERKELIUM" #hereBk Print "" Print "Berkelium is the 97th element" Print "Berkelium's symbol is Bk" Print "The average atomic mass = 247g" Print "The electron configuration is : [Rn] 5f^9 7s^2" Print "Type of element: Rare-Earth" Print "Number of isotopes: 0" EndIf If element$ = "beryllium" 'Or "Beryllium" Or "BERYLLIUM" #hereBe Print "" Print "Beryllium is the 4th element" Print "Beryllium's symbol is Be" Print "The average atomic mass = 9.01218g" Print "The electron configuration is : [He] 2s^2" Print "Type of element: Alkali Earth" Print "Number of isotopes: 1" EndIf If element$ = "bismuth" 'Or "Bismuth" Or "BISMUTH" #hereBi Print "" Print "Bismuth is the 83rd element" Print "Bismuth's symbol is Bi" Print "The average atomic mass = 208.9804g" Print "The electron configuration is : [Xe] 4f^14 5d^10 6s^2 6p^3 " Print "Type of element: Metal" Print "Number of isotopes: 1" EndIf If element$ = "bohrium" 'Or "Bohrium" Or "BOHRIUM" #hereBh Print "" Print "Bohrium is the 107th element" Print "Bohrium's symbol is Bh" Print "The average atomic mass = 262g" Print "The electron configuration is : [Rn] 5f^14 6d^5 7s^2 " Print "Type of element: Transition Metal" Print "Number of isotopes: ?" EndIf If element$ = "boron" 'Or "Boron" Or "BORON" #hereB Print "" Print "Boron is the 5th element" Print "Boron's symbol is B" Print "The average atomic mass = 10.81g" Print "The electron configuration is : [He] 2s^2 2p^1" Print "Type of element: Non-Metal" Print "Number of isotopes: 2" EndIf If element$ = "bromine" 'Or "Bromine" Or "BROMINE" #hereBr Print "" Print "Bromine is the 35th element" Print "Bromine's symbol is Br" Print "The average atomic mass = 79.904g" Print "The electron configuration is : [Ar] 3d^10 4s^2 4p^5 " Print "Type of element: Halogen" Print "Number of isotopes: 2" EndIf '************** 'L E T T E R: C '************** If element$ = "cadmium" 'Or "Cadmium" Or "CADMIUM" #hereCd Print "" Print "Cadmium is the 48th element" Print "Cadmium's symbol is Cd" Print "The average atomic mass = 112.41g" Print "The electron configuration is : [Kr] 4d^10 5s^2 " Print "Type of element: Transition Metal" Print "Number of isotopes: 8" EndIf If element$ = "calcium" 'Or "Calcium" Or "CALCIUM" #hereCa Print "" Print "Calcium is the 20th element" Print "Calcium's symbol is Ca" Print "The average atomic mass = 40.08g" Print "The electron configuration is : [Ar] 4s^2" Print "Type of element: Alkali Earth" Print "Number of isotopes: 6" EndIf If element$ = "californium" 'Or "Californium" Or "CALIFORNIUM" #hereCf Print "" Print "Californium is the 98th element" Print "Californium's symbol is Cf" Print "The average atomic mass = 251g" Print "The electron configuration is : [Rn] 5f^10 7s^2 " Print "Type of element: Rare Earth" Print "Number of isotopes: 0" EndIf If element$ = "carbon" 'Or "Carbon" Or "CARBON" #hereC Print "" Print "Carbon is the 6th element" Print "Carbon's symbol is C" Print "The average atomic mass = 12.011g" Print "The electron configuration is : [He] 2s^2 2p^2 " Print "Type of element: Non-Metal" Print "Number of isotopes: 3" EndIf If element$ = "cerium" 'Or "Cerium" Or "CERIUM" #hereCe Print "" Print "Cerium is the 58th element" Print "Cerium's symbol is Ce" Print "The average atomic mass = 140.12g" Print "The electron configuration is : [Xe] 4f^2 6s^2 " Print "Type of element: Rare Earth" Print "Number of isotopes: 4" EndIf If element$ = "cesium" 'Or "Cesium" Or "CESIUM" #hereCs Print "" Print "Cesium is the 55th element" Print "Cesium's symbol is Cs" Print "The average atomic mass = 132.9054g" Print "The electron configuration is : [Xe] 6s^1" Print "Type of element: Alkali Metal" Print "Number of isotopes: 1" EndIf If element$ = "chlorine" 'Or "Chlorine" Or "CHLORINE" #hereCl Print "" Print "Chlorine is the 17th element" Print "Chlorine's symbol is Cl" Print "The average atomic mass = 35.453g" Print "The electron configuration is : [Ne] 3s^2 3p^5 " Print "Type of element: Halogen" Print "Number of isotopes: 2" EndIf If element$ = "chromium" 'Or "Chromium" Or "CHROMIUM" #hereCr Print "" Print "Chromium is the 24th element" Print "Chromium's symbol is Cr" Print "The average atomic mass = 51.996g" Print "The electron configuration is : [Ar] 3d^5 4s^1" Print "Type of element: Transition Metal" Print "Number of isotopes: 4" EndIf If element$ = "cobalt" 'Or "Cobalt" Or "COBALT" #hereCo Print "" Print "Cobalt is the 27th element" Print "Cobalt's symbol is Co" Print "The average atomic mass = 58.9332g" Print "The electron configuration is : [Ar] 3d^7 4s^2" Print "Type of element: Transition Metal" Print "Number of isotopes: 1" EndIf If element$ = "copper" 'Or "Copper" Or "COPPER" #hereCu Print "" Print "Copper is the 29th element" Print "Copper's symbol is Cu" Print "The average atomic mass = 63.546g" Print "The electron configuration is : [Ar] 3d^10 4s^1" Print "Type of element: Transition Metal" Print "Number of isotopes: 2" EndIf If element$ = "curium" 'Or "Curium" Or "CURIUM" #hereCm Print "" Print "Curium is the 96th element" Print "Curium's symbol is Cm" Print "The average atomic mass = 247g" Print "The electron configuration is : [Rn] 5f^7 6d^1 7s^2" Print "Type of element: Rare Earth" Print "Number of isotopes: 0" EndIf '************** 'L E T T E R: D '************** If element$ = "darmstadtium" 'Or "Darmstadtium" Or "DARMSTADTIUM" #hereDs Print "" Print "Darmstadtium is the 110th element" Print "Darmstadtium's symbol is Ds" Print "The average atomic mass = 272g" Print "The electron configuration is : [Rn] 5f^14 6d^8 7s^2" Print "Type of element: Transtition Metal" Print "Number of isotopes: ?" EndIf If element$ = "dubnium" 'Or "Dubnium" Or "DUBNIUM" #hereDb Print "" Print "Dubnium is the 105th element" Print "Dubnium's symbol is Db" Print "The average atomic mass = 262g" Print "The electron configuration is : [Rn] 5f^14 6d^3 7s^2" Print "Type of element: Transition Metal" Print "Number of isotopes: ?" EndIf If element$ = "dysprosium" 'Or "Dysprosium" Or "DYSPROSIUM" #hereDy Print "" Print "Dysprosium is the 66th element" Print "Dysprosium's symbol is Dy" Print "The average atomic mass = 162.50g" Print "The electron configuration is : [Xe] 4f^10 6s^2" Print "Type of element: Rare Earth" Print "Number of isotopes: 7" EndIf '************** 'L E T T E R: E '************** If element$ = "einsteinium" 'Or "Einsteinium" Or "EINSTEINIUM" #hereEs Print "" Print "Einsteinium is the 99th element" Print "Einsteinium's symbol is Es" Print "The average atomic mass = 254g" Print "The electron configuration is : [Rn] 5f^11 7s^2 " Print "Type of element: Rare Earth" Print "Number of isotopes: 0" EndIf If element$ = "erbium" 'Or "Erbium" Or "ERBIUM" #hereEr Print "" Print "Erbium is the 68th element" Print "Erbium's symbol is Er" Print "The average atomic mass = 167.26g" Print "The electron configuration is : [Xe] 4f^12 6s^2" Print "Type of element: Rare Earth" Print "Number of isotopes: 6" EndIf If element$ = "europium" 'Or "Europium" Or "EUROPIUM" #hereEu Print "" Print "Europium is the 63rd element" Print "Europium's symbol is Eu" Print "The average atomic mass = 151.96g" Print "The electron configuration is : [Xe] 4f^7 6s^2" Print "Type of element: Rare Earth" Print "Number of isotopes: 2" EndIf '************** 'L E T T E R: F '************** If element$ = "fermium" 'Or "Fermium" Or "FERMIUM" #hereFm Print "" Print "Fermium is the 100th element" Print "Fermium's symbol is Fm" Print "The average atomic mass = 257g" Print "The electron configuration is : [Rn] 5f^12 7s^2" Print "Type of element: Rare Earth" Print "Number of isotopes: 0" EndIf If element$ = "fluorine" 'Or "Fluorine" Or "FLUORINE" #hereF Print "" Print "Fluorine is the 9th element" Print "Fluorine's symbol is F" Print "The average atomic mass = 18.9984g" Print "The electron configuration is : [He] 2s^2 2p^5" Print "Type of element: Halogen" Print "Number of isotopes: 1" EndIf If element$ = "francium" 'Or "Francium" Or "FRANCIUM" #hereFr Print "" Print "Francium is the 87th element" Print "Francium's symbol is Fr" Print "The average atomic mass = 223g" Print "The electron configuration is : [Rn] 7s^1" Print "Type of element: Alkali Metal" Print "Number of isotopes: 1" EndIf '************** 'L E T T E R: G '************** If element$ = "gadolinium" 'Or "Gadolinium" Or "GADOLINIUM" #hereGd Print "" Print "Gadolinium is the 64th element" Print "Gadolinium's symbol is Gd" Print "The average atomic mass = 157.25g" Print "The electron configuration is : [Xe] 4f^7 5d^1 6s^2" Print "Type of element: Rare Earth" Print "Number of isotopes: 7" EndIf If element$ = "gallium" 'Or "Gallium" Or "GALLIUM" #hereGa Print "" Print "Gallium is the 31st element" Print "Gallium's symbol is Ga" Print "The average atomic mass = 68.723g" Print "The electron configuration is : [Ar] 3d^10 4s^2 4p^1" Print "Type of element: Metal" Print "Number of isotopes: 2" EndIf If element$ = "germanium" 'Or "Germanium" Or "GERMANIUM" #hereGe Print "" Print "Germanium is the 32nd element" Print "Germanium's symbol is Ge" Print "The average atomic mass = 72.59g" Print "The electron configuration is : [Ar] 3d^10 4s^2 4p^2" Print "Type of element: Metal" Print "Number of isotopes: 5" EndIf If element$ = "gold" 'Or "Gold" Or "GOLD" #hereAu Print "" Print "Gold is the 79th element" Print "Gold's symbol is Au" Print "The average atomic mass = 196.9665g" Print "The electron configuration is : [Xe] 4f^14 5d^10 6s^1" Print "Type of element: Transition Metal" Print "Number of isotopes: 1" EndIf '************** 'L E T T E R: H '************** If element$ = "hafnium" 'Or "Hafnium" Or "HAFNIUM" #hereHf Print "" Print "Hafnium is the 72nd element" Print "Hafnium's symbol is Hf" Print "The average atomic mass = 178.49g" Print "The electron configuration is : [Xe] 4f^14 5d^2 6s^2" Print "Type of element: Transition Metal" Print "Number of isotopes: 6" EndIf If element$ = "hassium" 'Or "Hassium" Or "HASSIUM" #hereHs Print "" Print "Hassium is the 108th element" Print "Hassium's symbol is Hs" Print "The average atomic mass = 265g" Print "The electron configuration is : [Rn] 5f^14 6d^6 7s^2" Print "Type of element: Transition Metal" Print "Number of isotopes: ?" EndIf If element$ = "helium" 'Or "Helium" Or "HELIUM" #hereHe Print "" Print "Helium is the 2nd element" Print "Helium's symbol is He" Print "The average atomic mass = 4.0026g" Print "The electron configuration is : 1s^2" Print "Type of element: Noble Gas" Print "Number of isotopes: 2" EndIf If element$ = "holmium" 'Or "Holmium" Or "HOLMIUM" #hereHo Print "" Print "Holmium is the 67th element" Print "Holmium's symbol is Ho" Print "The average atomic mass = 164.93g" Print "The electron configuration is : [Xe] 4f^11 6s^2" Print "Type of element: Rare Earth" Print "Number of isotopes: 1" EndIf '************** 'L E T T E R: I '************** If element$ = "indium" 'Or "Indium" Or "INDIUM" #hereIn Print "" Print "Indium is the 49th element" Print "Indium's symbol is In" Print "The average atomic mass = 114.82g" Print "The electron configuration is : [Kr] 4d^10 5s^2 5p^1" Print "Type of element: Metal" Print "Number of isotopes: 2" EndIf If element$ = "iodine" 'Or "Iodine" Or "IODINE" #hereI Print "" Print "Iodine is the 53rd element" Print "Iodine's symbol is I" Print "The average atomic mass = 126.9045g" Print "The electron configuration is : [Kr] 4d^10 5s^2 5p^5" Print "Type of element: Halogen" Print "Number of isotopes: 1" EndIf If element$ = "iridium" 'Or "Iridium" Or "IRIDIUM" #hereIr Print "" Print "Irridium is the 77th element" Print "Irridium's symbol is Ir" Print "The average atomic mass = 192.22g" Print "The electron configuration is : [Xe] 4f^14 5d^7 6s^2" Print "Type of element: Transition Metal" Print "Number of isotopes: 2" EndIf If element$ = "iron" 'Or "Iron" Or "IRON" #hereFe Print "" Print "Iron is the 26th element" Print "Iron's symbol is Fe" Print "The average atomic mass = 55.847g" Print "The electron configuration is : [Ar] 3d^6 4s^2" Print "Type of element: Transition Metal" Print "Number of isotopes: 4" EndIf '************** 'L E T T E R: K '************** If element$ = "krypton" 'Or "KRYPTON" Or "Krypton" #hereKr Print "" Print "Krypton is the 36th element" Print "Krypton's symbol is Kr" Print "The average atomic mass = 83.80g" Print "The electron configuration is : [Ar] 3d^10 4s^2 4p^6" Print "Type of element: Noble Gas" Print "Number of isotopes: 6" EndIf '************** 'L E T T E R: L '************** If element$ = "lanthanum" 'Or "Lanthanum" Or "LANTHANUM" #hereLa Print "" Print "Lanthanum is the 57th element" Print "Lanthanum's symbol is La " Print "The average atomic mass = 138.9055g" Print "The electron configuration is : [Xe] 5d^1 6s^2" Print "Type of element: Transition Metal" Print "Number of isotopes: 2" EndIf If element$ = "lawrencium" 'Or "Lawrencium" Or "LAWRENCIUM" #hereLr Print "" Print "Lawrencium is the 103rd element" Print "Lawrencium's symbol is Lr" Print "The average atomic mass = 260g" Print "The electron configuration is : [Rn] 5f^14 6d^1 7s^2" Print "Type of element: Rare Earth" Print "Number of isotopes: 0" EndIf If element$ = "lead" 'Or "Lead" Or "LEAD" #herePb Print "" Print "Lead is the 82nd element" Print "Lead's symbol is Pb" Print "The average atomic mass = 207.2g" Print "The electron configuration is : [Xe] 4f^14 5d^10 6s^2 6p^2" Print "Type of element: Metal" Print "Number of isotopes: 4" EndIf If element$ = "lithium" 'Or "Lithium" Or "LITHIUM" #hereLi Print "" Print "Lithium is the 3rd element" Print "Lithium's symbol is Li" Print "The average atomic mass = 6.94g" Print "The electron configuration is : [He] 2s^1" Print "Type of element: Alkali Metal" Print "Number of isotopes: 2" EndIf If element$ = "lutetium" 'Or "Lutetium" Or "LUTETIUM" #hereLu Print "" Print "Lutetium is the 71st element" Print "Lutetium's symbol is Lu" Print "The average atomic mass = 174.96g" Print "The electron configuration is : [Xe] 4f^14 5d^1 6s^2" Print "Type of element: Rare Earth" Print "Number of isotopes: 2" EndIf '************** 'L E T T E R: M '************** If element$ = "magnesium" 'Or "Magnesium" Or "MAGNESIUM" #hereMg Print "" Print "Magnesium is the 12th element" Print "Magnesium's symbol is Mg" Print "The average atomic mass = 24.305g" Print "The electron configuration is : [Ne] 3s^2" Print "Type of element: Alkali Earth" Print "Number of isotopes: 3" EndIf If element$ = "manganese" 'Or "Manganese" Or "MANGANESE" #hereMn Print "" Print "Manganese is the 25th element" Print "Manganese's symbol is Mn" Print "The average atomic mass = 54.938g" Print "The electron configuration is : [Ar] 3d^5 4s^2" Print "Type of element: Transition Metal" Print "Number of isotopes: 1" EndIf If element$ = "meitnerium" 'Or "Meitnerium" Or "MEITNERIUM" #hereMt Print "" Print "Meitnerium is the 109th element" Print "Meiternium's symbol is Mt" Print "The average atomic mass = 266g" Print "The electron configuration is : [Rn] 5f^14 6d^7 7s^2" Print "Type of element: Transition Metal" Print "Number of isotopes: ?" EndIf If element$ = "mendelevium" 'Or "Mendelevium" Or "MENDELEVIUM" #hereMd Print "" Print "Mendelevium is the 101st element" Print "Mendelevium's symbol is Md" Print "The average atomic mass = 258g" Print "The electron configuration is : [Rn] 5f^13 7s^2" Print "Type of element: Rare Earth" Print "Number of isotopes: 0" EndIf If element$ = "mercury" 'Or "Mercury" Or "MERCURY" #hereHg Print "" Print "Mercury is the 80th element" Print "Mercury's symbol is Hg" Print "The average atomic mass = 200.59g" Print "The electron configuration is : [Xe] 4f^14 5d^10 6s^2" Print "Type of element: Transition Metal" Print "Number of isotopes: 7" EndIf If element$ = "molybdenum" 'Or "Molybdenum" Or "MOLYBDENUM" #hereMo Print "" Print "Molybdenum is the 42nd element" Print "Molybdenum's symbol is Mo" Print "The average atomic mass = 95.94g" Print "The electron configuration is : [Kr] 4d^5 5s^1" Print "Type of element: Transition Metal" Print "Number of isotopes: 7" EndIf '************** 'L E T T E R: N '************** If element$ = "neodymium" 'Or "Neodymium" Or "NEODYMIUM" #hereNd Print "" Print "Neodymium is the 60th element" Print "Neodymium's symbol is Nd" Print "The average atomic mass = 144.24g" Print "The electron configuration is : [Xe] 4f^4 6s^2" Print "Type of element: Rare Earth" Print "Number of isotopes: 7" EndIf If element$ = "neon" 'Or "Neon" Or "NEON" #hereNe Print "" Print "Neon is the 10t element" Print "Neon's symbol is Ne" Print "The average atomic mass = 20.17g" Print "The electron configuration is : [He] 2s^2 2p^6" Print "Type of element: " Print "Number of isotopes: " EndIf If element$ = "neptunium" 'Or "Neptunium" Or "NEPTUNIUM" #hereNp Print "" Print "Neptunium is the 93rd element" Print "Neptunium's symbol is Np" Print "The average atomic mass = 237.0482g" Print "The electron configuration is : [Rn] 5f^4 6d^1 7s^2" Print "Type of element: Rare Earth" Print "Number of isotopes: 0" EndIf If element$ = "nickel" 'Or "Nickel" Or "NICKEL" #hereNi Print "" Print "Nickel is the 28th element" Print "Nickel's symbol is Ni" Print "The average atomic mass = 58.71g" Print "The electron configuration is : [Ar] 3d^8 4s^2" Print "Type of element: Transition Metal" Print "Number of isotopes: 5" EndIf If element$ = "niobium" 'Or "Niobium" Or "NIOBIUM" #hereNb Print "" Print "Niobium is the 41st element" Print "Niobium's symbol is Nb" Print "The average atomic mass = 92.906g" Print "The electron configuration is : [Kr] 4d^4 5s^1" Print "Type of element: Transition Metal" Print "Number of isotopes: 1" EndIf If element$ = "nitrogen" 'Or "Nitrogen" Or "NITROGEN" #hereN Print "" Print "Nitrogen is the 7th element" Print "Nitrogen's symbol is N" Print "The average atomic mass = 14.0067g" Print "The electron configuration is : [He] 2s^2 2p^3" Print "Type of element: Non-Metal" Print "Number of isotopes: 2" EndIf If element$ = "nobelium" 'Or "Nobelium" Or "NOBELIUM" #hereNo Print "" Print "Nobelium is the 102nd element" Print "Nobelium's symbol is No" Print "The average atomic mass = 259g" Print "The electron configuration is : [Rn] 5f^14 7s^2" Print "Type of element: Rare Earth" Print "Number of isotopes: 0" EndIf '************** 'L E T T E R: O '************** If element$ = "osmium" 'Or "Osmium" Or "OSMIUM" #hereOs Print "" Print "Osmium is the 76th element" Print "Osmium's symbol is Os" Print "The average atomic mass = 190.2g" Print "The electron configuration is : [Xe] 4f^14 5d^6 6s^2" Print "Type of element: Transition Metal" Print "Number of isotopes: 7" EndIf If element$ = "oxygen" 'Or "Oxygen" Or "OXYGEN" #hereO Print "" Print "Oxygen is the 8th element" Print "Oxygen's symbol is O" Print "The average atomic mass = 15.9994g" Print "The electron configuration is : [He] 2s^2 2p^4" Print "Type of element: Non-Metal" Print "Number of isotopes: 3" EndIf '************** 'L E T T E R: P '************** If element$ = "palladium" 'Or "Palladium" Or "PALLADIUM" #herePd Print "" Print "Palladium is the 46th element" Print "Palladium's symbol is Pd" Print "The average atomic mass = 106.4g" Print "The electron configuration is : [Kr] 4d^10" Print "Type of element: Transition Metal" Print "Number of isotopes: 6" EndIf If element$ = "phosphorus" 'Or "Phosphorus" Or "PHOSPHORUS" #hereP Print "" Print "Phosphorus is the 15th element" Print "Phosphorus's symbol is P" Print "The average atomic mass = 30.973736g" Print "The electron configuration is : [Ne] 3s^2 3p^3" Print "Type of element: Non-Metal" Print "Number of isotopes: 1" EndIf If element$ = "platinum" 'Or "Platinum" Or "PLATINUM" #herePt Print "" Print "Platinum is the 78th element" Print "Platinum's symbol is Pt" Print "The average atomic mass = 195.09g" Print "The electron configuration is : [Xe] 4f^14 5d^9 6s^1" Print "Type of element: Transition Metal" Print "Number of isotopes: 6" EndIf If element$ = "plutonium" 'Or "Plutonium" Or "PLUTONIUM" #herePu Print "" Print "Plutonium is the 94th element" Print "Plutonium's symbol is Pu" Print "The average atomic mass = 244g" Print "The electron configuration is : [Rn] 5f^6 7s^2" Print "Type of element: Rare Earth" Print "Number of isotopes: 0" EndIf If element$ = "polonium" 'Or "Polonium" Or "POLONIUM" #herePo Print "" Print "Polonium is the 84th element" Print "Polonium's symbol is Po" Print "The average atomic mass = 209g" Print "The electron configuration is : [Xe] 4f^14 5d^10 6s^2 6p^4" Print "Type of element: Metal" Print "Number of isotopes: 1" EndIf If element$ = "potassium" 'Or "Potassium" Or "POTASSIUM" #hereK Print "" Print "Potassium is the 19th element" Print "Potassium's symbol is K" Print "The average atomic mass = 39.0983g" Print "The electron configuration is : [Ar] 4s^1" Print "Type of element: Alkali Metal" Print "Number of isotopes: 3" EndIf If element$ = "praseodymium" 'Or "Praseodymium" Or "PRASEODYMIUM" #herePr Print "" Print "Praseodymium is the 59th element" Print "Praseodymium's symbol is Pr" Print "The average atomic mass = 140.9077g" Print "The electron configuration is : [Xe] 4f^3 6s^2" Print "Type of element: Rare Earth" Print "Number of isotopes: 1" EndIf If element$ = "promethium" 'Or "Promethium" Or "PROMETHIUM" #herePm Print "" Print "Promethium is the 61st element" Print "Promethium's symbol is Pm" Print "The average atomic mass = 145g" Print "The electron configuration is : [Xe] 4f^5 6s^2" Print "Type of element: Rare Earth" Print "Number of isotopes: 0" EndIf If element$ = "protactinium" 'Or "Protactinium" Or "PROTACTINIUM" #herePa Print "" Print "Protactinium is the 91st element" Print "Protactinium's symbol is Pa" Print "The average atomic mass = 231.0359g" Print "The electron configuration is : [Rn] 5f^2 6d^1 7s^2" Print "Type of element: Rare Earth" Print "Number of isotopes: 1" EndIf '************** 'L E T T E R: R '************** If element$ = "radium" 'Or "Radium" Or "RADIUM" #hereRa Print "" Print "Radium is the 88th element" Print "Radium's symbol is Ra" Print "The average atomic mass = 226.0254g" Print "The electron configuration is : [Rn] 7s^2" Print "Type of element: Alkali Earth" Print "Number of isotopes: 4" EndIf If element$ = "radon" 'Or "Radon" Or "RADON" #hereRn Print "" Print "Radon is the 86th element" Print "Radon's symbol is Rn" Print "The average atomic mass = 222g" Print "The electron configuration is : [Xe] 4f^14 5d^10 6s^2 6p^6" Print "Type of element: Noble Gas" Print "Number of isotopes: 0" EndIf If element$ = "rhenium" 'Or "Rhenium" Or "RHENIUM" #hereRe Print "" Print "Rhenium is the 75th element" Print "Rhenium's symbol is Re" Print "The average atomic mass = 186.207g" Print "The electron configuration is : [Xe] 4f^14 5d^5 6s^2" Print "Type of element: Transition Metal" Print "Number of isotopes: 2" EndIf If element$ = "rhodium" 'Or "Rhodium" Or "RHODIUM" #hereRh Print "" Print "Rhodium is the 45th element" Print "Rhodium's symbol is Rh" Print "The average atomic mass = 102.9055" Print "The electron configuration is : [Kr] 4d^8 5s^1" Print "Type of element: Transition Metal" Print "Number of isotopes: 1" EndIf If element$ = "roentgenium" 'Or "Roentgenium" Or "ROENTGENIUM" #hereRg Print "" Print "Roentgenium is the 111th element" Print "Roentgenium's symbol is Rg" Print "The average atomic mass = 280g" Print "The electron configuration is : [Rn] 5f^14 6d^9 7s^2" Print "Type of element: Transition Metal" Print "Number of isotopes: ?" EndIf If element$ = "rubidium" 'Or "Rubidium" Or "RUBIDIUM" #hereRb Print "" Print "Rubidium is the 37th element" Print "Rubidium's symbol is Rb" Print "The average atomic mass = 85.467g" Print "The electron configuration is : [Kr] 5s^1" Print "Type of element: Alkali Metal" Print "Number of isotopes: 2" EndIf If element$ = "ruthenium" 'Or "Ruthenium" Or "RUTHENIUM" #hereRu Print "" Print "Ruthenium is the 44th element" Print "Ruthenium's symbol is Ru" Print "The average atomic mass = 101.07g" Print "The electron configuration is : [Kr] 4d^7 5s^1" Print "Type of element: Transition Metal" Print "Number of isotopes: 7" EndIf If element$ = "rutherfordium" 'Or "Rutherfordium" Or "RUTHERFORDIUM" #hereRf Print "" Print "Rutherfordium is the 104th element" Print "Rutherfordium's symbol is Rf" Print "The average atomic mass = 261g" Print "The electron configuration is : [Rn] 5f^14 6d^2 7s^2" Print "Type of element: Transition Metal" Print "Number of isotopes: ?" EndIf '************** 'L E T T E R: S '************** If element$ = "samarium" 'Or "Samarium" Or "SAMARIUM" #hereSm Print "" Print "Samarium is the 62nd element" Print "Samarium's symbol is Sm" Print "The average atomic mass = 150.4g" Print "The electron configuration is : [Xe] 4f^6 6s^2" Print "Type of element: Rare Earth" Print "Number of isotopes: 7" EndIf If element$ = "scandium" 'Or "Scandium" Or "SCANDIUM" #hereSc Print "" Print "Scandium is the 21st element" Print "Scandium's symbol is Sc" Print "The average atomic mass = 44.9559g" Print "The electron configuration is : [Ar] 3d^1 4s^2" Print "Type of element: Transition Metal" Print "Number of isotopes: 1" EndIf If element$ = "seaborgium" 'Or "Seaborguim" Or "SEABORGIUM" #hereSg Print "" Print "Seaborgium is the 106th element" Print "Seaborgium's symbol is Sg" Print "The average atomic mass = 263g" Print "The electron configuration is : [Rn] 5f^14 6d^4 7s^2" Print "Type of element: Transition Metal" Print "Number of isotopes: ?" EndIf If element$ = "selenium" 'Or "Selenium" Or "SELENIUM" #hereSe Print "" Print "Selenium is the 34th element" Print "Selenium's symbol is Se" Print "The average atomic mass = 78.96g" Print "The electron configuration is : [Ar] 3d^10 4s^2 4p^4" Print "Type of element: Non-Metal" Print "Number of isotopes: 6" EndIf If element$ = "silicon" 'Or "Silicon" Or "SILICON" #hereSi Print "" Print "Silicon is the 14th element" Print "Silicon's symbol is Si" Print "The average atomic mass = 28.0855g" Print "The electron configuration is : [Ne] 3s^2 3p^2" Print "Type of element: Non-Metal" Print "Number of isotopes: 3" EndIf If element$ = "silver" 'Or "Silver" Or "SILVER" #hereAg Print "" Print "Silver is the 47th element" Print "Silver's symbol is Ag" Print "The average atomic mass = 107.868g" Print "The electron configuration is : [Kr] 4d^10 5s^1" Print "Type of element: Transition Metal" Print "Number of isotopes: 2" EndIf If element$ = "sodium" 'Or "Sodium" Or "SODIUM" #hereNa Print "" Print "Sodium is the 11th element" Print "Sodium's symbol is Na" Print "The average atomic mass = 22.98977g" Print "The electron configuration is : [Ne] 3s^1" Print "Type of element: Alkali Metal" Print "Number of isotopes: 1" EndIf If element$ = "strontium" 'Or "Strontium" Or "STRONTIUM" #hereSr Print "" Print "Strontium is the 38th element" Print "Strontium's symbol is Sr" Print "The average atomic mass = 87.62g" Print "The electron configuration is : [Kr] 5s^2" Print "Type of element: Alkali Earth" Print "Number of isotopes: 4" EndIf If element$ = "sulfur" 'Or "Sulfur" Or "SULFUR" #hereS Print "" Print "Sulfur is the 16th element" Print "Sulfur's symbol is S" Print "The average atomic mass = 32.06g" Print "The electron configuration is : [Ne] 3s^2 3p^4" Print "Type of element: Non-Metal" Print "Number of isotopes: 4" EndIf '************** 'L E T T E R: T '************** If element$ = "tantalum" 'Or "Tantalum" Or "TANTALUM" #hereTa Print "" Print "Tantalum is the 73rd element" Print "Tantalum's symbol is Ta" Print "The average atomic mass = 180.947g" Print "The electron configuration is : [Xe] 4f^14 5d^3 6s^2" Print "Type of element: Transition Metal" Print "Number of isotopes: 2" EndIf If element$ = "technetium" 'Or "Technetium" Or "TECHNETIUM" #hereTc Print "" Print "Technetium is the 43rd element" Print "Technetium's symbol is Tc" Print "The average atomic mass = 98.9062g" Print "The electron configuration is : [Kr] 4d^5 5s^2" Print "Type of element: Transition Metal" Print "Number of isotopes: 0" EndIf If element$ = "tellurium" 'Or "Tellurium" Or "TELLURIUM" #hereTe Print "" Print "Tellurium is the 52nd element" Print "Tellurium's symbol is Te" Print "The average atomic mass = 127.60g" Print "The electron configuration is : [Kr] 4d^10 5s^2 5p^4" Print "Type of element: Non-Metal" Print "Number of isotopes: 8" EndIf If element$ = "terbium" 'Or "Terbium" Or "TERBIUM" #hereTb Print "" Print "Terbium is the 65th element" Print "Terbium's symbol is Tb" Print "The average atomic mass = 158.925g" Print "The electron configuration is : [Xe] 4f^9 6s^2" Print "Type of element: Rare Earth" Print "Number of isotopes: 1" EndIf If element$ = "thallium" 'Or "Thallium" Or "THALLIUM" #hereTl Print "" Print "Thallium is the 81st element" Print "Thallium's symbol is Tl" Print "The average atomic mass = 204.37g" Print "The electron configuration is : [Xe] 4f^14 5d^10 6s^2 6p^1" Print "Type of element: Metal" Print "Number of isotopes: 2" EndIf If element$ = "thorium" 'Or "Thorium" Or "THORIUM" #hereTh Print "" Print "Thorium is the 90th element" Print "Thorium's symbol is Th" Print "The average atomic mass = 232.038g" Print "The electron configuration is : [Rn] 6d^2 7s^2" Print "Type of element: Rare Earth" Print "Number of isotopes: 3" EndIf If element$ = "thulium" 'Or "Thulium" Or "THULIUM" #hereTm Print "" Print "Thulium is the 69th element" Print "Thulium's symbol is Tm" Print "The average atomic mass = 168.9342g" Print "The electron configuration is : [Xe] 4f^13 6s^2" Print "Type of element: Rare Earth" Print "Number of isotopes: 1" EndIf If element$ = "tin" 'Or "Tin" Or "TIN" #hereSn Print "" Print "Tin is the 50th element" Print "Tin's symbol is Sn" Print "The average atomic mass = 118.69g" Print "The electron configuration is : [Kr] 4d^10 5s^2 5p^2" Print "Type of element: Metal" Print "Number of isotopes: 10" EndIf If element$ = "titanium" 'Or "Titanium" Or "TITANIUM" #hereTi Print "" Print "Titanium is the 22nd element" Print "Titanium's symbol is Ti" Print "The average atomic mass = 47.90g" Print "The electron configuration is : [Ar] 3d^2 4s^2" Print "Type of element: Transition Metal" Print "Number of isotopes: " EndIf If element$ = "tungsten" 'Or "Tungsten" Or "TUNGSTEN" #hereW Print "" Print "Tungsten is the 74th element" Print "Tungsten's symbol is W" Print "The average atomic mass = 183.85g" Print "The electron configuration is : [Xe] 4f^14 5d^4 6s^2" Print "Type of element: Transition Metal" Print "Number of isotopes: 5" EndIf '************** 'L E T T E R: U '************** If element$ = "uranium" 'Or "Uranium" Or "URANIUM" #hereU Print "" Print "Uranium is the 92nd element" Print "Uranium's symbol is U" Print "The average atomic mass = 238.029g" Print "The electron configuration is : [Rn] 5f^3 6d^1 7s^2" Print "Type of element: Rare Earth" Print "Number of isotopes: 3" EndIf '************** 'L E T T E R: V '************** If element$ = "vanadium" 'Or "Vanadium" Or "VANADIUM" #hereV Print "" Print "Vanadium is the 23rd element" Print "Vanadium's symbol is V" Print "The average atomic mass = 50.9415g" Print "The electron configuration is : [Ar] 3d^3 4s^2" Print "Type of element: Transition Metal" Print "Number of isotopes: 2" EndIf '************** 'L E T T E R: X '************** If element$ = "xenon" 'Or "Xenon" Or "XENON" #hereXe Print "" Print "Xenon is the 54th element" Print "Xenon's symbol is Xe" Print "The average atomic mass = 131.30g" Print "The electron configuration is : [Kr] 4d^10 5s^2 5p^6" Print "Type of element: Noble Gas" Print "Number of isotopes: 9" EndIf '************** 'L E T T E R: Y '************** If element$ = "ytterbium" 'Or "Ytterbium" Or "YTTERBIUM" #hereYb Print "" Print "Ytterbium is the 70th element" Print "Ytterbium's symbol is Yb" Print " |