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]: runfile('/Users/hamzazidoum/Documents/21@1/2101_52021/ Programming Assignments/PA4/pa4_nuc lear.py', wdir=' /Users/hamzazidoum/ Documents/2101/2iø1_s2e21/Programming Assignments/PA4') »>Enter valid atomic number (Z) [1,118]: 0 >>>Enter valid atomic number (Z) (1,118]: -120 >>Enter valid atomic number (Z) (1,118]: 200 >>Enter valid atomic number (Z) [1,118]: 5 binding energy binding_ energy per Nucleon ============= -448.996 -226.623 -82.990 -89. 799 -37.771 -11.856 -0.472 6. 8. 6. 10 11 12 13 14 15 16 17 18 19 20 -3.778 47.111 64.228 70.245 55.009 35.952 1.794 -32.682 -78.825 -123.453 -177.641 -229.307 5.235 6.423 6.386 4.584 2.766 0.128 -2.179 -4.927 -7.262 -9.869 -12.069 -14.457 -289.143 The most stable nuc leus has a mass number 10
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]: runfile('/Users/hamzazidoum/Documents/21@1/2101_52021/ Programming Assignments/PA4/pa4_nuc lear.py', wdir=' /Users/hamzazidoum/ Documents/2101/2iø1_s2e21/Programming Assignments/PA4') »>Enter valid atomic number (Z) [1,118]: 0 >>>Enter valid atomic number (Z) (1,118]: -120 >>Enter valid atomic number (Z) (1,118]: 200 >>Enter valid atomic number (Z) [1,118]: 5 binding energy binding_ energy per Nucleon ============= -448.996 -226.623 -82.990 -89. 799 -37.771 -11.856 -0.472 6. 8. 6. 10 11 12 13 14 15 16 17 18 19 20 -3.778 47.111 64.228 70.245 55.009 35.952 1.794 -32.682 -78.825 -123.453 -177.641 -229.307 5.235 6.423 6.386 4.584 2.766 0.128 -2.179 -4.927 -7.262 -9.869 -12.069 -14.457 -289.143 The most stable nuc leus has a mass number 10
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
100%
by using Python language
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps with 1 images
Knowledge Booster
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.Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education