Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Create a C++ output format statement which would generate lines in the table whi

ID: 3641782 • Letter: C

Question

Create a C++ output format statement which would generate lines in the table which appear as shown below.

Element Name Field..YYY....XXX.XXXX

The Element Name Field displays an element name contained in the name variable. YYY displays an integer value from the anum variable which ranges from 1 thru 109 and should be left justified. XXX.XXXX displays an atomic weight value from the aweight variable which ranges from 1.0000 to 268.0000 and should be right justified. Use the variables shown below in your output statements.


char name[15]; int anum; double aweight;

Explanation / Answer

#include #include using namespace std; int main() { char name[15] ="helium"; int anum =2 ; double aweight =1.0026f; cout