1. Problem Description: The total nuclear binding energy is the energy required to split a nucleus of an atom in its component parts: protons and neutrons, or, collectively, the nucleons. It describes how strongly nucleons are bound to each other. When a high amount of energy is needed to separate the nucleons, it means nucleus is very stable and the neutrons and protons are tightly bound to each other. The atomic number or proton number (symbol Z) is the number of protons found in the nucleus of an atom. The sum of the atomic number Z and the number of neutrons N gives the mass number A of an atom. + Binding energy Nucleus (smaller mass) Separated nucleons (greater mass) Figure 1: Binding Energy in the Nucleus The approximate nuclear binding energy Eb in million electron volts, of an atomic nucleus with atomic number Z and mass number A is calculated using the following formula: (A – 22)2 as Eb = a,A – azA³ – az¬- a4 A A AZ where, a, = 15.67, az = 17.23, az = 0.75, a, = 93.2 ,and if A is odd if A and Z are both even if A is even and Z is Odd as = 12.0 (-12.0 The binding energy per nucleon (BEN) is calculated by dividing the binding energy (Eb) by the mass number (A). You are asked to write a program that requests the user for a valid atomic number (Z) then goes through all values of A from A = Z to A = 4Z. For example, if the user inputs 5 for Z then A will be all numbers from 5 (Z) to 20 (4 inclusive, see the example output in figure 2. If the user enters invalid atomic number that is not between 1 and 118, the program should give the user another chance to enter a valid input as shown in figure 2. Your main task is to find the nucleus with the highest binding energy per nudeon, which corresponds to the most stable configuration (figure 2), and writes a copy of the table to a text file named output.txt (figure3). Z) In (25): runfilel users/hanzazidoun/Decunents/2101/2101 52021/ Progranning Assignnents/PAA/patuc lear.py, wdire/Users/hanzazidoun/ Docunents/2101/nien s2021/Programing Assignnents/PA4) Enter valid atonic nunber (2) (1,118): Enter valid atonic nunber (2) (1,118): -120 Enter valid atonic nunber (Z) (1,118): 200 Enter valid atonic nunber (2) (1,118): 5 binding energy binding energy per Nucleon www 89.799 -37.771 -11.856 4.472 5.235 6.423 6.306 -448.996 -226.623 -82.990 -3.778 47.111 64.228 70.245 55.009 35.952 1.794 -32.682 -78.825 -123.453 -177.641 -229.307 -289.143 10 11 12 13 14 15 4.584 2.766 0.128 -2.179 -4.927 -7.262 -9.869 -12.069 -14.457 17 18 19 20 The most stable nucleus has a nass nunber 10

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter3: Assignment, Formatting, And Interactive Input
Section: Chapter Questions
Problem 6PP: (Heat transfer) The formula developed in Exercise 5 can be used to determine the cooling time, t,...
icon
Related questions
Question
By python, use functions
1. Problem Description:
The total nuclear binding energy is the energy required to split a nucleus of an
atom in its component parts: protons and neutrons, or, collectively, the nucleons.
It describes how strongly nucleons are bound to each other. When a high amount
of energy is needed to separate the nucleons, it means nucleus is very stable
and the neutrons and protons are tightly bound to each other.
The atomic number or proton number (symbol Z) is the number of protons found
in the nucleus of an atom. The sum of the atomic number Z and the number of
neutrons N gives the mass number A of an atom.
+ Binding energy
Nucleus
(smaller mass)
Separated nucleons
(greater mass)
Figure 1: Binding Energy in the Nucleus
The approximate nuclear binding energy Eb in million electron volts, of an atomic
nucleus with atomic number Z and mass number A is calculated using the
following formula:
(A – 22)², as
Eb = a,A - azA3 – azT- a4
A
AZ
where, a, = 15.67, a, = 17.23, az = 0.75, a, = 93.2 ,and
if A is odd
if A and Z are both even
if A is even and Z is Odd
as =
12.0
-12.0
The binding energy per nucleon (BEN) is calculated by dividing the binding
energy (Eb) by the mass number (A).
You are asked to write a program that requests the user for a valid atomic
number (Z) then goes through all values of A from A =Z to A = 4Z. For example,
if the user inputs 5 for Z then A will be all numbers from 5 (Z) to 20 (4 Z)
inclusive, see the example output in figure 2.
If the user enters invalid atomic number that is not between 1 and 118, the
program should give the user another chance to enter a valid input as shown in
figure 2.
Your main task is to find the nucleus with the highest binding energy per nucleon,
which corresponds to the most stable configuration (figure 2), and writes a copy
of the table to a text file named output.txt (figure3).
In (25): runfi le('/Users/hanzazidoum/Documents/2101/2101_52021/
Progranning Assignnents/PA4/pa4_nuc lear.py', vdira'/Users/hamzazidoun/
Documents/2101/2ie1_s2021/Progranning Assignments/PA4')
>Enter valid atomic number (2) (1,118]: e
>>>Enter valid atomic number (2) [1,118]: -120
>>Enter valid atomic number (2) (1,118): 200
>Enter valid atomic number (2) [1,118]: 5
A
binding
energy
binding energy
per Nucleon
-448.996
-226.623
-82.990
-3.778
47.111
64.228
70.245
55.e09
10
11
12
13
14
15
16
17
18
-89.799
-37.771
-11.856
-0.472
5.235
6.423
6.386
4.584
2.766
e. 128
-2.179
-4.927
-7.262
-9.869
-12.069
-14.457
35.952
1.794
-32.682
-78.825
-123.453
-177.641
-229.307
-289.143
The most stable nucleus has a mass number 10
Transcribed Image Text:1. Problem Description: The total nuclear binding energy is the energy required to split a nucleus of an atom in its component parts: protons and neutrons, or, collectively, the nucleons. It describes how strongly nucleons are bound to each other. When a high amount of energy is needed to separate the nucleons, it means nucleus is very stable and the neutrons and protons are tightly bound to each other. The atomic number or proton number (symbol Z) is the number of protons found in the nucleus of an atom. The sum of the atomic number Z and the number of neutrons N gives the mass number A of an atom. + Binding energy Nucleus (smaller mass) Separated nucleons (greater mass) Figure 1: Binding Energy in the Nucleus The approximate nuclear binding energy Eb in million electron volts, of an atomic nucleus with atomic number Z and mass number A is calculated using the following formula: (A – 22)², as Eb = a,A - azA3 – azT- a4 A AZ where, a, = 15.67, a, = 17.23, az = 0.75, a, = 93.2 ,and if A is odd if A and Z are both even if A is even and Z is Odd as = 12.0 -12.0 The binding energy per nucleon (BEN) is calculated by dividing the binding energy (Eb) by the mass number (A). You are asked to write a program that requests the user for a valid atomic number (Z) then goes through all values of A from A =Z to A = 4Z. For example, if the user inputs 5 for Z then A will be all numbers from 5 (Z) to 20 (4 Z) inclusive, see the example output in figure 2. If the user enters invalid atomic number that is not between 1 and 118, the program should give the user another chance to enter a valid input as shown in figure 2. Your main task is to find the nucleus with the highest binding energy per nucleon, which corresponds to the most stable configuration (figure 2), and writes a copy of the table to a text file named output.txt (figure3). In (25): runfi le('/Users/hanzazidoum/Documents/2101/2101_52021/ Progranning Assignnents/PA4/pa4_nuc lear.py', vdira'/Users/hamzazidoun/ Documents/2101/2ie1_s2021/Progranning Assignments/PA4') >Enter valid atomic number (2) (1,118]: e >>>Enter valid atomic number (2) [1,118]: -120 >>Enter valid atomic number (2) (1,118): 200 >Enter valid atomic number (2) [1,118]: 5 A binding energy binding energy per Nucleon -448.996 -226.623 -82.990 -3.778 47.111 64.228 70.245 55.e09 10 11 12 13 14 15 16 17 18 -89.799 -37.771 -11.856 -0.472 5.235 6.423 6.386 4.584 2.766 e. 128 -2.179 -4.927 -7.262 -9.869 -12.069 -14.457 35.952 1.794 -32.682 -78.825 -123.453 -177.641 -229.307 -289.143 The most stable nucleus has a mass number 10
Expert Solution
steps

Step by step

Solved in 4 steps with 6 images

Blurred answer
Knowledge Booster
Function Arguments
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning