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

You make a large bowl of salad to share with your friends. Your sister eats 1/3 of it before they come over. You want to divide the leftover salad evenly among
Some Americans prefer appointment of judges rather than elections because they believe appointment
Water has a high specific heat, meaning that water will warm up or cool down more
How do health care industry or external changes impact the things that you do personally?
How is the information in news writing represented?a.Pyramid c.Outline b.Flowchart d.Inverted Pyramid
Which of the following devices imparts ownership in a corporation? A. U.S. Treasury Bill B. Stock C. Bond D. Savings account
What happened as a consequence of the boycott?
Name 3 fat-soluble vitamins and 3 water-soluble vitamins and the food in which they are found
Which word has the same prefix as disrespect?
What is NH in a molecule?