Define a class Element to represent an chemical element with atomic number, name, symbol, column class, atomic weight, and electron shell configuration

What will be an ideal response?


```
class Element {
public:
Element () {}
Element (int); // constructor with atomic number
int getAtomicNumber() const; // accessor
string getName() const; // accessor

private:
int N; // Atomic Number
string Name, // Element Name
Symbol, // IUPAC Chemical Symbol
Class; // column class, ie alkali_metal, halogen, etc
double Z; // Atomic Weight
int e[7]; // electronic configuration

friend istream& operator>> (istream&, Element&);
friend ostream& operator<< (ostream&, const Element&);
};

int main()
{
Element elem1;

```

Computer Science & Information Technology

You might also like to view...

In CentOS 7, what command is to to extract fields from a file line (record)?

A. sort B. less C. set D. cut

Computer Science & Information Technology

To extend the bottom border of a hyperlink across the complete width of a navigation list, change the ____ property of each hyperlink to block.

A. block B. display C. border-display D. auto

Computer Science & Information Technology

The ____ lets you create high-quality images by choosing the percentage contribution from each color channel.

a. Channel Regulator b. Contribution Panel c. Channel Control d. Channel Mixer

Computer Science & Information Technology

Which of the following sends commands to a logical storage space consisting of one or more virtual disks?

A. iSCSI initiator B. iSNS server C. iSCSI target D. iSCSI qualified name

Computer Science & Information Technology