foxethan188 foxethan188
  • 14-02-2018
  • Computers and Technology
contestada

In java - compute the average kids per family. note that the integers should be type cast to doubles.

Respuesta :

pbzepplin
pbzepplin pbzepplin
  • 23-02-2018

The formula for calculating the average is simple: total number of kids/total number of families.

Note, while the kids and families will be integers, the average will likely be a double. Therefore, in Java, you need to type cast the result:

Average_kids_per_family =(double) total_number_of_kids/total_number_of_families

Answer Link

Otras preguntas

After the death of Muhammad the Muslim community split. Why and how did this occur?
Please help me. I need serious help.
Solve by Factoring (4m +2 )(3m - 9)= 0
EEEE HELP "For the first time, Joseph felt glad to be different and special." Do you think Joseph should feel different and special after his trip to the Citade
helpppppppppppppp with this
help help hep help???????????
What color pixels are used in a camera? red, blue, and green red, yellow, and green red, yellow, and blue red, blue, and yellow
the best word to describe eddie’s relationship with his brother is
what group of people in Florida had their voting rights taken away in 1868
64 in the ratio 7 : 1