CISC 1115 Introduction to Java

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) Fk 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×1019 C1.60×1019 C 8.19×108N 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×1010 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: ‘

Place your order
(550 words)

Approximate price: $22

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

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.

Money-back guarantee

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 more

Zero-plagiarism guarantee

Each 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 more

Free-revision policy

Thanks 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 more

Privacy policy

Your 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 more

Fair-cooperation guarantee

By 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

Order your essay today and save 30% with the discount code HAPPY