harman15hkp942es harman15hkp942es
  • 22-05-2018
  • Computers and Technology
contestada

Named constants should be used when they serve to improve readability and understanding. T or F

Respuesta :

cdw2014
cdw2014 cdw2014
  • 22-05-2018
The answer is true.

Let's say we are calculating the volume of a grain silo where the the width is a constant, but the height can be changed.

In our code we would calculate the volume using something like:

PI * (WIDTH / 2)^2 * height

The variables in all caps would be named constants. Using them makes the code more readable to other people than if we were to just use their values like:

3.14 * (145.75 / 2)^2 * height




Answer Link
josie17340
josie17340 josie17340
  • 22-05-2018
It's true. T for true
Answer Link

Otras preguntas

What is the product of 7x-4 and 8x+5
which renisance technique was used in this painting to make it more realistic and three dimensional?
which term describes this example? a rabbit's cells have two sex chromosomes that are different. A.homozygous dominant B.homozygous recessive C.heterozygous D.
How do we protect the person who appears in the commission of state capture inquiry
What’s the value of n in the equation-1/2(2n+4)+6=-9+4(2n+1)
What is the correct way to write this fraction as a percent? A. 20% B. 25% C. 40% D. 70%
La historia de juan. write your own ending
SOMEONE PELASE HELP ME!!!!!!! I NED HELP RIGHT NOWWWW
Use substitution to solve. 2x? = 5 + y 4y = -20 + 8x? Solve the first equation for y and substitute it into the second equation. The resulting equation is
how is sound detected by the brain