Define a class element to represent one element from the


Question: Define a class Element to represent one element from the periodic table of elements. Data members should include the atomic number (an integer), the name, chemical symbol, and class (one-word strings), a numeric component for the atomic weight, and a seven-element array of integers for the number of electrons in each shell. Here are the components of an Element-class object representing sodium: 11 Sodium Na alkalijnetal 22.9898 281000 0 Define a default constructor and a constructor that takes one parameter representing the atomic number. Define a type int accessor function getAtomicNumber and a type string accessor getName, and overload the » and « operators as friends of Element. Write a main function that tests all the features of the class.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Define a class element to represent one element from the
Reference No:- TGS02578024

Expected delivery within 24 Hours