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 & Explanation:
Definition:
Mass informs us about how much matter is present in a body. It is the measure of the inertia of a body. It can be measured by measuring the force of gravity acting on it on earth.
On the other hand, Momentum is the quantity of motion of the body. It depends depends upon velocity and the direction of the motion of the body.
Unit:
The SI unit of mass is kilogram (kg) while the SI unit of momentum is kg.m.s-1.
Formula:
Mass = Momentum / Velocity
Momentum = Mass * Velocity
or p = mv
Type:
Mass is scalar quantity while Momentum is a vector quantity.
Isn't it "gravity" this would makes sense because grvaity difines weight
Answer:
The work done by the catcher is 120 J.
Explanation:
Given;
velocity of the fastball, v = 40 m/s
mass of the fastball, m = 150 g = 0.15 kg
Based on work-energy theorem, the work done by the catcher is equal to the kinetic energy of the fastball.
The kinetic energy of the fastball is given as;
K.E = ¹/₂mv²
K.E = ¹/₂ x 0.15 x 40²
K.E = 120 J
Therefore, the work done by the catcher is 120 J.