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

Divide.(10a^4-5a^3) / 5a
what are the dog days of summer?
what does 'heaven knows' mean?
what does 'all eyes on me' mean?
Electrons surround the nucleus of an atom and those that are in the outer energy levels are _____.less attracted to the nucleusmore attracted to the nucleusnot
what does 'chop and change' mean?
What Does 'Buy the Farm' Mean?
Which causes malaria, African sleeping sickness, and amoebic dysentery?A. FungiB. VirusesC. BacteriaD. Protists
what do you set the oven to when baking palmiers
give some facts on Sputnik