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
oksian1 [2.3K]
4 years ago
14

Explain why each of the following names does or does not seem like a good variable name to represent a state sales tax rate.

Computers and Technology
1 answer:
tatyana61 [14]4 years ago
7 0

a. stateTaxRate  - A good variable name because it represents what it holds, the state sales tax rate, without being too wordy. Also correctly capitalized in camelcase.

b. txRt  - A bad variable name because while short and simple, it is too hard to understand what the variable represents.

c. t  - A very bad variable name if you plan on using the variable often. Far too short and you will forget what it represents and is needed for.

d. stateSalesTaxRateValue  - A bad variable name because it is just too wordy. Cutting it down to A's variable name is much more reasonable

e. state tax rate  - A bad variable name and probably invalid because it has spaces in the name.

f. taxRate  - A good variable name if there are no other tax calculations other than state tax rate. Otherwise you would confuse state vs local tax rate or something, making it a bad variable name.

g. 1TaxRate  - A bad variable name because the number 1 has no reason being in the variable name. It doesn't add anything to the name.

h. moneyCharged - A bad variable name because it is not specific enough in explaining why the money is being charged and what for.

You might be interested in
An elevator of mass 250kg is carrying two persons whose masses are 50kg and 100kg. if the force exerted by the motor is 3000N. C
Agata [3.3K]

m_{elevator}=250kg \\m_{people}=50kg+100kg=150kg \\m_{motor}\approx3000N\div10\frac{m}{s^2}\approx300kg \\m_{total}\approx250kg+150kg+300kg\approx\boxed{700kg}

Hope this helps.

r3t40

5 0
3 years ago
2. A _______
miv72 [106K]

Explanation:

A computer is an electronic device that can store and proceda

7 0
3 years ago
C
PolarNik [594]

Answer:

do you still need the answer?

Explanation:

8 0
3 years ago
Read 2 more answers
The retention of encoded information over time is called storage. A measure of memory storage that involves identifying informat
Anni [7]

Answer: ask google and search quizlet by it , it will show you

Explanation:

7 0
4 years ago
How to solve everything in Kotlin??
Anit [1.1K]

Answer:

crreate a method that takes a string as a perimeter and inverts it

3 0
3 years ago
Other questions:
  • Bar-code readers are typically used to track large numbers of inventory items, as in grocery store inventory and checkout, packa
    14·1 answer
  • Microsoft ____ is the new web browser.
    13·2 answers
  • What is the point of having bullets points in a text box
    11·1 answer
  • Jackson is teaching the decimal number system. He wants his students to know how to expand numbers by powers of 10. Which is the
    13·2 answers
  • If you find yourself in a position where you need to restore an object or container within active directory that has been inadve
    6·1 answer
  • Which binary signaling technique uses a scheme in which zero voltage represents a 0 bit and the voltage for a 1 bit does not dro
    11·1 answer
  • Why was Unicode invented?
    11·1 answer
  • "A ____ is loosely defined as a very small device that has some built-in computing or Internet capability"
    15·1 answer
  • A ________ refers to specific content of a field.
    7·1 answer
  • The U.S. consumes lots of energy. Which fuel provides the most energy?
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!