Brooklyn College Professor Langsam Assignment #1 Coulombs law or Coulombs inverse-square law is an experimental law of physics that quantifies the amount of force between two stationary electrically charged particles. The electric force between charged bodies at rest is conventionallycalled electrostatic force or Coulomb force. The law was first discovered in 1785 by French physicist Charles-Augustin de Coulomb hence the name1. The law states that the magnitude of the electrostatic force of attraction or repulsion between two point charges is directly proportional to the product of the magnitudes of charges and inversely proportional to the square of the distance between them proportional to the square of the distance: where: F ke q1 and q2 r is the Coulomb Force (in newtons)is Coulombs constant (ke ≈ 8.988×109 N⋅m2⋅C−2)are the signed magnitudes of the charges (in coulombs) is the distance between the charges (in meters) Fk qq e 12 r2 Write a Java program that calculates the Coulomb Force between two charged particles. Your program should print a message of the form: THE COULOMB FORCE BETWEEN A PARTICLE OF CHARGE __________ COULOMBS AND A PARTICLE OF CHARGE __________ COULOMBS AT A DISTANCE OF __________ METERS IS _________ NEWTONS 1 https://en.wikipedia.org/wiki/Coulomb%27s_law HW1j_Java.doc 01/29/21 For example: Calculate the electrostatic force between an electron and proton separated by a distance of 0.530 × 10-10 meter (typical distance in a hydrogen atom). The charge of an electron is -1.60 × 10-19 coulombs and the charge of a proton is +1.60 × 10-19 coulombs. Thus: q q Nm2 1.60×1019 C1.60×1019 C 8.19×108N Use the trailer method to signal the end of the data. Be sure to use meaningful variables comment your program as we discussed in class and use a consistent style. All prompts are to go to the screen and all output must go directly to a file. You may not copy and paste the output from the console. Programming note: F k 1 2 8.988x109er2 C2 2 0.530×1010 m Use the following data: Particle 1 -1.60 x 10-19 +1.60 x 10-19 5.00 1.00 x 10-6 -5.00 Scientific notation: 3.141593e+00 Particle +1.60 x 10-19 +1.60 x 10-19 -3.00 1.00 x 10-6 -3.00 Distance 0.530 x 10-10 1.000 x 10-10 0.250 0.01 1.00 HW1j_Java.doc 01/29/21 Requirements: 1 page the code The absolute value of x in Java may be calculated by using the method Math.abs(x) When entering a number such as -1.60×10-19 use exponential notation -1.60E-19 When printing an exponent such as x2 you may print it as x^2. Alternatively you may print the result using the printf format specifier %e or %E:System.out.printf(“Scientific notation: %en” Math.PI); will print: The absolute value of x in Java may be calculated by using the method Math.abs(x)When entering a number such as -1.60×10-19 use exponential notation -1.60E-19When printing an exponent such as x2 you may print it as x^2. Alternatively you may print the result using the printf format specifier %e or %E:System.out.printf(“Scientific notation: %en” Math.PI); will print: ‘
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.
Read moreEach paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.
Read moreThanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.
Read moreYour email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.
Read moreBy sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.
Read more