Question #236633

Describe what is a variable and how it is used in a program.

Expert's answer

A variable is a placeholder that can take any allowed value. For example, we design a heat sensor that measures the temperature in the bathroom and turns on alarm when the temperature is below a certain limit. The temperature here is an independent variable, a quantity that may change and defines what signal the sensor will output. The magnitude of the signal here is a dependent variable.


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS