Question: Write a C program to prompt the user for an atomic number, and the program will print out the electron orbital chart for that element.
Write a C program to prompt the user for an atomic number, and the program will print out the electron orbital chart for that element. If the user enters a number outside the periodic chart eg above give an error message of "Number is outside the range of atomic numbers." and exit. The output will be an orbital chart, where each entry will contain the orbit number followed by the orbital type s p d f and finally the number of electrons that are in that orbital. If the final orbital is not fully populated, it should print the actual number of electrons there, not the total possible.
The program should output:
Enter the atomic number:
The orbitals for the element are:
s
sp
spd
spdf
sp
s
use nested loops for this program
you cannot use arrays or the string library
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
