Question: 4. Suppose we define a structure to store information about the elements in the periodic table of elements. For each element, we store the name,

4. Suppose we define a structure to store information about the elements in the periodic table of elements. For each element, we store the name, atomic number, chemical symbol, atomic weight, and a four element vector for the number of electrons in each of the first four shells. Create a script named element.m and initialize an array of structures to store these specific elements: hydrogen H 1.0078 10 e e helium He 4.0026 2 0 e lithium Li 6.938 2 1 0 0 beryllium Be 9.0122 2 2 0 e Prompt the user to enter a number from 1 to 4. Display the information for the element stored at that array index location
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
