Assume that children is an integer variable containing the number of children in a community and that families is an integer variable containing the number of families in the same community. Write an expression whose value is the floating point average number of children per family.

Respuesta :

Answer:

Answered

Step-by-step explanation:

Children*1 d/ family

Integer division returns an integer value in most languages.

I am assuming "1d" is double precision 1, which turns the expression into floating point division, thus allowing an answer like 1.8.

it can also be written as

float(children)/float(family)