Answer:
True, check attachment for code
Explanation:
To convert java strings of text to upper or lower case, we can use and inbuilt methods To Uppercase and To lower case.
The first two lines of code will set up a String variable to hold the text "text to change", and then we print it out.
The third line sets of a second String variable called result.
The fourth line is where the conversion is done.
We can compare the string
We can compare one string to another. (When comparing, Java will use the hexadecimal values rather than the letters themselves.) For example, if we wanted to compare the word "Fat" with the word "App" to see which should come first, you can use an inbuilt string method called compareTo.
Check attachment for the code
Answer:
f>1000Hz and wavelength=0.343 m
Explanation:
We are given that
Frequency of stationary siren,f=1000 Hz
Wavelength of stationary sound,
When a observer is moving towards the siren then the frequency increases.
Therefore,an observer who is moving towards the siren measure a frequency >1000 Hz.
The wavelength depends upon the speed of source.
But we are given that siren is stationary.
Therefore, source is not moving and then the wavelength remains same.
f>1000Hz and wavelength=0.343 m
law of conservation of mechanical energy
PE1 = Ek2
mgh=1/2mv²
h = 12 sin 60

Answer:
y = 12.82 m
Explanation:
We can solve this exercise using the energy work theorem
W = ΔEm
friction force work is
W = fr . s = fr s cos θ
the friction force opposes the movement, therefore the angle is 180º
W = - fr s
we write Newton's second law, where we use a reference frame with one axis parallel to the plane and the other perpendicular
N -Wy = 0
N = mg cos θ
the friction force remains
fr = μ N
fr = μ mg cos θ
work gives
W = - μ mg s cos θ
initial energy
Em₀ = ½ m v²
the final energy is zero, because it stops
we substitute
- μ m g s cos θ = 0 - ½ m v²
s = ½ v² / (μ g cos θ)
let's calculate
s = ½ 20² / (0.55 9.8 cos 20)
s = 39.49 m
this is the distance it travels along the plane, to find the vertical distance let's use trigonometry
sin 20 = y / s
y = s sin 20
y = 37.49 sin 20
y = 12.82 m