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 block has two strings attached to it on opposite ends. One string has a force of 5 N,
juin [17]

Unless you have a diagram to include or any other additional info, I'll assume the block is being pulled by two opposing forces along the horizontal surface.

Horizontally, the block is under the influence of

• one rope pulling in one direction with magnitude 15 N,

• the other rope pulling in the opposite direction with mag. 5 N, and

• friction, opposing the direction of the block's motion, with mag. 3 N.

It stands to reason that the block is accelerating in the direction of the larger pulling force.

(A) By Newton's second law, we have

15 N + (-5 N) + (-3 N) = <em>m</em> (1 m/s²)

where <em>m</em> is the mass of the block. Solve for <em>m</em> :

7 N = <em>m</em> (1 m/s²)

<em>m</em> = (7 N) / (1 m/s²)

<em>m</em> = 7 kg

(B) The friction force is proportional to the normal force, so that if <em>f</em> is the mag. of friction and <em>n</em> is the mag. of the normal force, then <em>f</em> = <em>µ</em> <em>n</em> where <em>µ</em> is the coefficient of friction.

The block does not bounce up and down, so its vertical forces are balanced, which means the normal force and the block's weight (mag. <em>w</em>) cancel out:

<em>n</em> + (-<em>w</em>) = 0

<em>n</em> = <em>w</em>

<em>n</em> = <em>m</em> <em>g</em>

where <em>g</em> = 9.8 m/s² is the mag. of the acceleration due to gravity.

<em>n</em> = (7 kg) (9.8 m/s²)

<em>n</em> = 68.6 N

Then

3 N = <em>µ</em> (68.6 N)

<em>µ</em> = (3 N) / (68.6 N)

<em>µ</em> ≈ 0.044

4 0
3 years ago
Which of the following is true about scientific models? (2 points) Select one: a. Models are used to simplify the study of thing
Vanyuwa [196]

Question: Which of the following is true about scientific models?  Select one: A) Models are used to simplify the study of things. B) Computer models are the most reliable kind of model. C) Models explain past, present and future information. D) A model is accurate if it does not change over time.

Answer: <u>A) Models are used to simplify the study of things.</u>

<em>Hope this helps!.</em>

<em>~~~~~~~~~~~~~~~~~~~~~~</em>

<em>~A.W~ZoomZoom44</em>

5 0
3 years ago
Read 2 more answers
: In heavy rushIn heavy rush-hour traffic you drive in a straight line at 12 m/s for 1.5 minutes, then you have to stop for 3.5
zhuklara [117]
Guessing you want the average speed. We can multiple each speed by the time we spent going that speed, and them all together and then divide by the total time we spent in traffic to get the average speed. We spent a total of 7.5 minutes in traffic, so average speed  = (12*1.5+0*3.5+15*2.5)/7.5 = 7.4 m/s
8 0
3 years ago
If a small sports car collides head-on with a massive truck, which vehicle experiences the greater impact force? Which vehicle e
garri49 [273]

Answer:

Small sports car.

Explanation:

Lets take

mass of the small car = m

mass of the truck = M

As we know that when car collide with the massive truck then due to change in the moment of the car both car as well as truck will feel force.We also know that from Third law of Newton's ,it states that every action have it reaction with same magnitude but in the opposite direction.

Therefore

F = m a

a=Acceleration of the car

a=\dfrac{F}{m}

F= M a'

a'=Acceleration of the massive truck

a'=\dfrac{F}{M}

Here given that M > m that is why a > a'

Therefore car will experiences more acceleration.

5 0
3 years ago
Question is In Image Provided
KatRina [158]

Answer:

i would think the first two, but i cant be sure.

Explanation:

7 0
3 years ago
Other questions:
  • Looking for some help with the left side of the table and the questions followed :)
    12·1 answer
  • When white light is viewed through sodium vapor in a spectroscope the spectrum is continuous?
    7·2 answers
  • A charge of 1.5 × 1015 coulombs moves from point A to a lower potential at point B. The electric field is uniform at 2.5 × 10-5
    13·1 answer
  • What is modulus of elasticity for shearing stress and strain called?
    13·1 answer
  • Using a simple machine, a student is able to lift a 500N weight by applying only 100N.
    13·1 answer
  • Pleaseee helppp!!! Due in 10 minutes and I’m clueless
    6·1 answer
  • 22. Cindy created a solenoid by coiling a copper wire and attaching it to a battery.
    6·2 answers
  • Which would be durable a monster truck tire or a full blown cement block? Explain pls
    5·2 answers
  • Reflect on your new experiences, what made you uncomfortable and what encouraged you. Did you learn anything new about yourself
    12·1 answer
  • A 2.00 kg cat is in a 97.00 kg elevator. What force on the elevator cable would be needed to lower the cat/elevator pair with an
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!