Hello, help with this question would be greatly appreciated! Define a structure
ID: 3656694 • Letter: H
Question
Hello, help with this question would be greatly appreciated! 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 0Explanation / 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; }
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.