Write statements to declare and initialize two variables : one, named element _number can hold any of the integer  values  1 through 118; the other, named atomic_weight can hold the atomic weight of the given element; atomic weights are values like 3.76.

Write statements to declare and initialize two variables : one, named element _number can hold any of the integer  values  1 through 118; the other, named atomic_weight can hold the atomic weight of the given element; atomic weights are values like 3.76.

LANGUAGE: C++

CHALLENGE:

Write statements to declare and initialize two variables : one, named element _number can hold any of the integer  values  1 through 118; the other, named atomic_weight can hold the atomic weight of the given element; atomic weights are values like 3.76.

In the declaration, initialize the variables to the values for oxygen, which is element number 8 and has an atomic weight of 15.9994.

This content requires that you purchase additional access. The price is $2.99 or free for our Make Life Easier and 30 Days – Not Recurring members.

Purchase this Content ($2.99) Choose a Membership Level