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
SSSSS [86.1K]
2 years ago
14

. A new programming language requires variable names to start with a letter (upper or lowercase), which can be followed by lette

rs, numbers, or underscores. For example, a1_B_3 is a valid name. If every variable name has to be at least 3 characters but fewer than 7, how many variable names are possible?
Physics
2 answers:
cupoosta [38]2 years ago
7 0

Answer:

Explanation:

Total letters available on the keyboard = 26

Doubling this amount to account for both upper and lower case letters.

Therefore, Total characters (Upper + Lower Case) = 52 characters

Total numbers on keyboard (0, 1, 2, 3, 4, 5, 6, 7, 8, 9) = 10 characters

Underscore = 1 character

Thus, Total allowed characters = 52 + 10 + 1 = 63

This is a problem of the permutation as order of the characters results in a different name.

Our file name should be of atleast 3 and smaller than 7 (i.e. 6) characters

Therefore, total possible permutations can be obtained by subtraction permutation of 2 characters from the permutations of 6 characters.

Total\; Permutations\; =\; (^{63}P_{6}) \;-\;(^{63}P_{2}) \\\\Total\; Permutations\; =\;48920775120\;-\;3906\\\\Total\; Permutations\; =\;48920771214

PolarNik [594]2 years ago
6 0

Answer:

1824799399

Explanation:

If we suppose that the letters allow are the 26 letters in the English alphabet, we have a total of 52 letters (Nl) counting upper and lowercase, and we have a total of ten number from zero to nine plus the underscore, for a total of 11 non-alphabetic characters (Nn). To calculate the variables namespace (Ps) we need to add the possibilities of combinations there are from 3 to 6 character (Pn), considering that the first character has to be a letter:

Pn = P3+P4+P5+P6

P3 = Nl*(Nl+Nn)^2 = 206388

P4 = Nl*(Nl+Nn)^3 = 13002444

P5 = Nl*(Nl+Nn)^4 = 819153972

P6 = Nl*(Nl+Nn)^5 = 992436595

Pn = 206388 + 13002444 + 819153972 + 992436595 = 1824799399

You might be interested in
I need a sentence for the word sandy soil
rusak2 [61]
One day, as I was walking, I found some sandy soil beside the road.
6 0
3 years ago
Read 2 more answers
Acceleration increases over time once a force is applied to the object. Given a force of 10.0 Newtons, which mass will have the
Zolol [24]

Mass is indirectly proportional to acceleration, so, lighter the object greater would be it's acceleration...

A) 0.10 kg is lightest among them, so it's your answer

6 0
3 years ago
Read 2 more answers
If a person tries to lift a heavy box for 5 seconds and can't make it budge,the work done on the box is less than zero
blondinia [14]
Question not making a sence, Clarify what you wana ask

3 0
2 years ago
a student measures the speed of yellow light in water to be 2.00 x 10(to the 8th power) meters per second, 1.87 x 10(to the 8th
mamaluj [8]
<span>3) Neither precise or accurate. This is because of the deviation between the measurements, they vary and are not within a good range. And they are not close to the accepted value. In order to be precise the measurements have to be relatively close to each other, and to be accurate they have to be close to the accepted value.</span>
8 0
3 years ago
To wait until the oncoming vehicle passes before completing a left turn is known as:
Reika [66]

Answer:

Risk rejection

Explanation:

There are several factors that contribute to the degree of driving risks and they include but not limited to the ability of the driver and the condition of a vehicle. Other factors are condition of the environment and the condition of the highway. When driving, a driver may wait until an oncoming vehicle passes before making a complete left turn as a risk rejection strategy. Left turns are more dangerous when making them because drivers tend to accelerate on to a left turn. The wider radius of a  left turn is know to led to higher speeds and greater pedestrian exposure. A driver is advised to have more mental and physical efforts when making a left turn.

5 0
3 years ago
Other questions:
  • A spring is compressed by 0.02m. Calculate the energy stored in the spring if the force constant is 400Nm-1
    15·1 answer
  • what is the acceleration of a 20kg bike if its being pedaled in a northerly direction with constant unbalanced force of 10 nwhat
    14·1 answer
  • On the 1-to-10-billion scale, about how far is it to the nearest stars besides the sun? on the 1-to-10-billion scale, about how
    7·1 answer
  • A mass M of 3.80E-1 kg slides inside a hoop of radius R=1.10 m with negligible friction. When M is at the top, it has a speed of
    15·1 answer
  • What are the units of measurement in the international system of units?
    10·1 answer
  • Could anyone help me with this question?
    15·2 answers
  • Someone help me, I'm stuck
    15·1 answer
  • Which one of Newton's three laws of motion deals with action-reaction?
    10·1 answer
  • If you have a mass of 15kg , what is your weight on earth?
    11·1 answer
  • Why thermos flask used​
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!