Answered step by step
Verified Expert Solution
Question
1 Approved Answer
java The purpose of this assignment is to practice OOP with Fundamental of Data Type, Constructing Objects and Classes, Decisions, Loops. Create a NetBeans project
java
The purpose of this assignment is to practice OOP with Fundamental of Data Type, Constructing Objects and Classes, Decisions, Loops. Create a NetBeans project named HWI_Yourld Important: Apply good programming practices: Provide comments for your code. Use meaningful variable and constant names. Show your name, university id and section number as a comment at the start of your code. Submit to Moodle the compressed file of your entire project (HW1_Yourld) Problem: The 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 + Binding energy required to separate the components Nucleus (Protons + Neutrons) Separated nucleons as A 41/2 The approximate nuclear binding energy (Es) of an atomic nucleus with atomic number 2 and mass number A is calculated using the following formula E) = 0,1 42A2/a (4-22 - 24 + where, a; - 15.67, a. - 1723, a; -0.75, a -93.2, and 0 If A is odd 12.0 if A and Z are both even, -12.0 if A is even and 2 is odd. And the binding energy per nucleon (BEN) is calculated by dividing the binding energy (Es) by the mass number (4) Inaihinn tha tomber In this assignment you are asked to write a java program that asks the user for a valid atomic number (2) then goes through all values of A from A - Z to A = 4Z to find the mass number (A) that has the largest binding energy per nucleon (BEN). If the user enters invalid atomic number that is not between 1 and 118, the program should give the user other chance to enter a valid input. + run: Please enter a valid atomic number (2) (1,118):>O Please enter a valid atomic number (2) [1,118):>-4 Please enter a valid atomic number iz) (1,118):> 120 Please enter a valid atomic number (2) 11,118):> 5 A Binding Binding Energy Energy per Nucleon 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 ze -448.996 -226.623 -82.990 -3.778 47.111 64.228 78.245 55.ee 35.952 1.794 -32.682 -78.825 -123.453 -177.641 --229.307 -289.143 -89.799 -37.771 - 11.856 -2.472 5.235 6.423 6.386 4.584 2.766 8. 128 -2.179 -4.927 -7.262 -9.869 -12.869 -14.457 The most stable nucleos has a sass number 12 Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started