1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
ch4aika [34]
3 years ago
10

Before using a string in a comparison, you can use either the To Upper method or the To Lower method to convert the string to up

per case or lower case, respectively, and then use the converted string in the comparison.1. True2. False
Physics
1 answer:
Burka [1]3 years ago
5 0

Answer:

True

Explanation:

If there's no preference over the string case (upper case or lower case), one can convert both strings to upper case or to lowercase and then compare the converted strings to test if they're equal or not.

An Illustration is

string a = "Boy"

string b = 'bOy"

if(a.ToUpper() == b.ToUpper() || a.ToLower() == b.ToLower())

{

Print "Equal Strings"

}

else

{

Print "Strings are not equal";

}

The above will first convert both strings and then compare.

Since they are the same (after conversion), the statement "Equal Strings" will be printed, without the quotes

You might be interested in
A 150 g baseball is traveling horizontally at 50 m/s. If the ball takes 20 ms to stop once it is in contact with the catcher’s g
Sliva [168]
To solve for force, you need to get the product of mass and acceleration. 
F = ma

Your given is:
m = 150g
a = ?
v = 50 m/s
t = 20ms

As you can see, you do not have acceleration yet. But if you read the problem you can come up with the formula of acceleration. 
Acceleration is the change in velocity over a period of time.

a = change in velocity/time

To get the change in velocity, you get the difference between the initial velocity and final velocity:

a =  \frac{vf-vi}{t}

The ball was moving initially at a velocity of 50 m/s and it came to a stop. This is your clue. If a ball comes to a stop then that means that the final velocity of the ball is 0 m/s. 

So we can put it into our formula now:

a = \frac{0m/s-50m/s}{20ms}

WAIT! As you can see, the units do not match. We have ms and s into our equation and that means you cannot proceed till they are the same. First we need to convert ms to s. 

20ms x \frac{1s}{1000ms} = \frac{20s}{1000} = 0.02s

So your new time is 0.02s. Now we put this time into the formula:


a = \frac{0m/s-50m/s}{0.02s}
a =  \frac{-50m/s}{0.02s}  = -2,500 m/ s^{2}

As you can see our acceleration is a negative value, this indicates that it decelerated or slowed down which makes sense because it was brought to a stop. 

So now we have our acceleration. Now using this, we can get our force. 

F= ma

Before we start doing this, you need to take note that the unit of force is N, but when you expand it, it is kg.m/ s^{2} but as you can see our mass given is in grams. So again, before you put them into the equation we need to change it into kg first. 

150g =  \frac{1kg}{1,000g}  =  \frac{150kg}{1,000}  = 0.150kg

Our new mass is 0.150kg. 

To make things clearer, let us write down all our new values:

m = 0.150kg
a = -2,500 m/ s^{2}

Now that all our units match, we can put that into our formula:

F= ma
F= (0.150kg)(-2,500m/s^{2})
F = -375kg.m/ s^{2}  or -375N

The value again is negative because it is going against the initial direction of the ball. But if your instructor just wants to get the value of force or the magnitude of the force, just disregard the sign. 



4 0
3 years ago
Explain the importance of measurement<br>Physics.<br><br>​
KiRa [710]

Answer:

Measurements are an important part of comparing things, as they provide the basis on comparing objects to other objects. Measurements allow us to recognize three hours and see how it's shorter than five hours, without having to observe the hours passing by themselves.

7 0
3 years ago
Describe an object's velocity when an acceleration-time graph is zero?
svp [43]
Anything times zero is zero
7 0
3 years ago
Read 2 more answers
Eddie tosses his phone up to his friends window, which is 4 m above the ground. what energy conversion takes place with respect
yan [13]
C the anwer is c hope i help
3 0
3 years ago
Read 2 more answers
6)the speed of light is approximately​ 186,000 mi/sec. It takes light from a particular star approximately 9 yrs to reach Earth.
NeTakaya

Answer:

5.2791264*10¹³

Explanation:

Convert the 9 years to seconds and then multiple it by 186000

5 0
3 years ago
Other questions:
  • A humanoid skeleton is found buried in the ashes of a volcano that erupted between 10,000 and 12,000 years ago. when scientists
    6·2 answers
  • A 1.41 µF capacitor charged to 51 V and a 2.49 µF capacitor charged to 31 V are connected to each other, with the two positive p
    14·2 answers
  • A constant force of 40N acting on a body initially at rest gives it an acceleration of 0.1m/s inverse 2 for 4s .calculate the wo
    13·1 answer
  • 1. An isotope has the same ________, but a different ________ .
    7·1 answer
  • The object moves with BLANK from A to B. it BLANK from B to C. it moves with BLANK from C to D.
    6·1 answer
  • A physicist measures the magnetic field at the center of a loop of wire with N number of turns (not a solenoid) and current I fl
    7·1 answer
  • What is the magnitude of the gravitational force the apple exerts on earth?
    9·1 answer
  • Explane Information-processing approach
    5·1 answer
  • A circuit has a voltage drop of 27 Vacross a 30 2 resistor that carries a
    13·1 answer
  • As shown above an adhesive has been applied to contacting faces of two blocks so that the blocks interact with an adhesive force
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!