Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

programming language: Java The dew point temperature Tocan be calculated (approximately) from the relative humidity RH and the actual temperature Tby b.f(T,RH) :- f(7,RH) f(T,RH)

programming language: Javaimage text in transcribedimage text in transcribed

The dew point temperature Tocan be calculated (approximately) from the relative humidity RH and the actual temperature Tby b.f(T,RH) :- f(7,RH) f(T,RH) = :+ln(RH) b+T where a = 17.27 and b = 237.7 C. a.T Write a program that reads the relative humidity (between 0 and 1) and the temperature (in degrees C) and prints the dew point value. Use the Java method Math.log to compute the natural logarithm (In). A sample run is shown below (the user input is shown in color). Once your program has been written and tested, turn in the source code (java) file. Sample Run: This program calculates the dew point, given the relative humidity as a decimal (e.g., 0.5) and the temperature in degrees Celsius. Relative humidity (between 0 and 1): 0.5 Temperature (in degrees C): 15 Dew point: 4.658867605547731 According to the Coulomb force law, the electric force between two charged particles of charge Q and Q2 Coulombs, that are a distance r meters apart, is F = Q1Q2 Newtons, where = 8.854 x 10-12 42 Farads/meter. Write a program that calculates the force on a pair of charged particles, based on the user input of Q, Coulombs, Q2 Coulombs, and r meters, and then computes and displays the electric force. A sample run is shown below (the user input is shown in color). Once your program has been written and tested, turn in the source code (.java) file. Sample Run: This program calculates the force between two charged particles, given the charges in Coulomos and the distance between them in meters. First charge (Coulomb] : 1.0 Second charge [Coulomb ]: 1.0 Distance [meters] : 1.0 Force: 8.987742437988218E9

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Application Development And Design

Authors: Michael V. Mannino

1st Edition

0072463678, 978-0072463675

More Books

Students also viewed these Databases questions