Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 (e.g. above 118) 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 (1-7) 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: 63
The orbitals for the element 63are:
1s2
2s22p6
3s23p63d10
4s24p64d104f7
5s25p6
6s2
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Visual Basic 6 Databases

Authors: Charles Williams

1st Edition

1861002025, 978-1861002020

More Books

Students also viewed these Databases questions