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 describes an activity associated with accounting?
Select the correct location on the map. Identify the region where the Catholic Church had major holdings during the 1600s.
what is the difference between information poor and information rich​
Read the following sentences: She was so pleased with the results of her physical fitness assessment. Her smile was a mile wide. What is the meaning of the hype
PLEASE HELP I REALLY NEED HELP!
Answer please my grade depends on it
6. Parallelogram ABCD shown in the diagram has an area of 50 square units. Find its perimeter.​
help helppeppepeppep
The graph of a quadratic function has y-intercept 10 and one of its x-intercepts is 1
help pls! Why is −3 1/8 a rational number? A. It is rational because all negative numbers are rational. B. It is rational because all integers are rational. C.