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

Define a structure type element_t to represent one element from the periodic tab

ID: 3656815 • Letter: D

Question

Define a structure type element_t to represent one element from the periodic table of elements. Components should include the atomic number (an integer); the name, chemical symbol, and class (strings); a numeric field for the atomic weight; and a seven element array of integers for the number of electrons in each shell. the following are the components of an element_t structure for sodium. 11 sodium Na alkali_metal 22.9898 2 8 1 0 0 0 0 Define and test I/O functions scan_element and print_element.

Explanation / Answer

/*you may also download this code from........http://www.2shared.com/document/U8Qg1Q5S/countVowel.html*/ int recCountVowels(char *str) { int count=0; if(strlen(str)>=1) { if(str[0]=='a' || str[0]=='A' || str[0]=='e' || str[0]=='E' || str[0]=='i' || str[0]=='I' || str[0]=='o' || str[0]=='O' || str[0]=='u' || str[0]=='U') { count=recCountVowels(++str)+1; } else { count=recCountVowels(++str); } } return count; }

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote